HttpRequest::setPostFields
HttpRequest::setPutData
HttpRequest
PHP Manual

# HttpRequest::setPostFiles

(PECL pecl_http >= 0.10.0)

HttpRequest::setPostFiles — Set post files

### Opis

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.

### Parametry

`post_files`

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

### Zwracane wartości

Zwraca `TRUE` w przypadku powodzenia, `FALSE` w przypadku błędu.

HttpRequest::setPostFields
HttpRequest::setPutData
HttpRequest
PHP Manual