|
MediaWiki REL1_35
|
Object to access the $_FILES array. More...
Public Member Functions | |
| __construct ( $request, $key) | |
| Constructor. | |
| exists () | |
| Return whether a file with this name was uploaded. | |
| getError () | |
| Return the upload error. | |
| getName () | |
| Return the original filename of the uploaded file. | |
| getSize () | |
| Return the file size of the uploaded file. | |
| getTempName () | |
| Return the path to the temporary file. | |
| getType () | |
| Return the client specified content type. | |
| isIniSizeOverflow () | |
| Returns whether this upload failed because of overflow of a maximum set in php.ini. | |
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(), getTempName(), and getType().
| WebRequestUpload::getError | ( | ) |
Return the upload error.
See link for explanation https://www.php.net/manual/en/features.file-upload.errors.php
Definition at line 124 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::getType | ( | ) |
Return the client specified content type.
Definition at line 110 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 138 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().