MediaWiki
master
|
Object to fake the $_FILES array. More...
Public Member Functions | |
__construct ( $data, $request, $key) | |
Constructor. More... | |
![]() | |
__construct ( $request, $key) | |
Constructor. More... | |
exists () | |
Return whether a file with this name was uploaded. More... | |
getError () | |
Return the upload error. More... | |
getName () | |
Return the original filename of the uploaded file. More... | |
getSize () | |
Return the file size of the uploaded file. More... | |
getTempName () | |
Return the path to the temporary file. More... | |
getType () | |
Return the client specified content type. More... | |
isIniSizeOverflow () | |
Returns whether this upload failed because of overflow of a maximum set in php.ini. More... | |
Additional Inherited Members | |
![]() | |
const | REQUIRED_FILEINFO_KEYS = [ 'name', 'size', 'tmp_name', 'type', 'error', ] |
All keys a fileinfo has to specific to work with this class. More... | |
![]() | |
bool | $doesExist |
array null | $fileInfo |
WebRequest | $request |
GuzzleHttp\Psr7\Request\FauxRequestUpload::__construct | ( | $data, | |
$request, | |||
$key | |||
) |
Constructor.
Should only be called by MediaWiki\Request\FauxRequest
array | $data | Array of non-urlencoded key => value pairs, the fake (whole) FILES values |
FauxRequest | $request | The associated faux request |
string | $key | name of upload param |
Definition at line 41 of file FauxRequestUpload.php.
References GuzzleHttp\Psr7\Request\WebRequestUpload\$request.