php[world] 2018 - Call for Speakers


(PECL pecl_http >= 0.10.0)

HttpRequest::setPostFilesSet post files


public bool HttpRequest::setPostFiles ( array $post_files )

Set files to post, overwriting previously set post files.

Affects only POST and requests. Cannot be used with raw post data.



an array containing the files to post; if empty, the post files will be unset

Return Values

Returns TRUE on success or FALSE on failure.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top