HttpRequest::addPostFile()
HttpRequest::addPostFile - Add post file
Syntax
public HttpRequest::addPostFile (
string $name,
string $file,
string $content_type)
Arguments
- name - the form element name
- file - the path to the file
- content_type - the content type of the file
Description
Add a file to the POST request, leaving previously set files unchanged.
Version
PHP PECL pecl_http >= 0.10.0
Return value
Returns TRUE on success, or FALSE if the content type seems not to contain a primary and a secondary content type part.