[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




/vendor/guzzlehttp/guzzle/src/Post/ -> PostFile.php (summary)

(no description)

File Size: 135 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PostFile:: (9 methods):

Class: PostFile  - X-Ref

Post file upload

__construct($name,$content,$filename = null,array $headers = [])   X-Ref

param: string          $name     Name of the form field
param: mixed           $content  Data to send
param: string|null     $filename Filename content-disposition attribute
param: array           $headers  Array of headers to set on the file

getName()   X-Ref
No description

getFilename()   X-Ref
No description

getContent()   X-Ref
No description

getHeaders()   X-Ref
No description

prepareContent($content)   X-Ref
Prepares the contents of a POST file.

param: mixed $content Content of the POST file

prepareFilename($filename)   X-Ref
Applies a file name to the POST file based on various checks.

param: string|null $filename Filename to apply (or null to guess)

prepareDefaultHeaders()   X-Ref
Applies default Content-Disposition and Content-Type headers if needed.

hasHeader($name)   X-Ref
Check if a specific header exists on the POST file by name.

param: string $name Case-insensitive header to check
return: bool

Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1