HttpRequest
PHP Manual

HttpRequest::setPostFiles

(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.

参数

post_files

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

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE


HttpRequest
PHP Manual