MediaWiki
1.34.0
|
Object to access the $_FILES array. More...
Public Member Functions | |
__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... | |
isIniSizeOverflow () | |
Returns whether this upload failed because of overflow of a maximum set in php.ini. More... | |
Protected Attributes | |
$doesExist | |
$fileInfo | |
$request | |
Object to access the $_FILES array.
Definition at line 30 of file WebRequestUpload.php.
WebRequestUpload::__construct | ( | $request, | |
$key | |||
) |
Constructor.
Should only be called by WebRequest
WebRequest | $request | The associated request |
string | $key | Key in $_FILES array (name of form field) |
Definition at line 41 of file WebRequestUpload.php.
References $request.
WebRequestUpload::exists | ( | ) |
Return whether a file with this name was uploaded.
Definition at line 54 of file WebRequestUpload.php.
References $doesExist.
Referenced by getError(), getName(), getSize(), and getTempName().
WebRequestUpload::getError | ( | ) |
Return the upload error.
See link for explanation https://www.php.net/manual/en/features.file-upload.errors.php
Definition at line 110 of file WebRequestUpload.php.
References exists().
Referenced by isIniSizeOverflow().
WebRequestUpload::getName | ( | ) |
Return the original filename of the uploaded file.
Definition at line 63 of file WebRequestUpload.php.
WebRequestUpload::getSize | ( | ) |
Return the file size of the uploaded file.
Definition at line 83 of file WebRequestUpload.php.
References exists().
WebRequestUpload::getTempName | ( | ) |
Return the path to the temporary file.
Definition at line 96 of file WebRequestUpload.php.
References exists().
WebRequestUpload::isIniSizeOverflow | ( | ) |
Returns whether this upload failed because of overflow of a maximum set in php.ini.
Definition at line 124 of file WebRequestUpload.php.
References getError(), and wfShorthandToInteger().
|
protected |
Definition at line 32 of file WebRequestUpload.php.
Referenced by exists().
|
protected |
Definition at line 33 of file WebRequestUpload.php.
|
protected |
Definition at line 31 of file WebRequestUpload.php.
Referenced by __construct().