40 $upload =
$request->getUpload(
'wpUploadFile' );
41 $desiredDestName =
$request->getText(
'wpDestFile' );
42 if ( !$desiredDestName ) {
43 $desiredDestName = $upload->getName();
46 $this->
initialize( $desiredDestName, $upload );
57 $this->mUpload->getTempName(), $this->mUpload->getSize() );
65 # Allow all requests, even if no file is present, so that an error
66 # because a post_max_size or upload_max_filesize overflow
81 # Check for a post_max_size or upload_max_size overflow, so that a
82 # proper error can be shown to the user
84 if ( $this->mUpload->isIniSizeOverflow() ) {
89 self::getMaxPhpUploadSize()
95 return parent::verifyUpload();
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
UploadBase and subclasses are the backend of MediaWiki's file uploads.
isEmptyFile()
Return true if the file is empty.
initializePathInfo( $name, $tempPath, $fileSize, $removeTempFile=false)
Initialize the path information.
Implements regular file uploads.
initialize( $name, $webRequestUpload)
Initialize from a filename and a WebRequestUpload.
static isValidRequest( $request)
WebRequestUpload $mUpload
initializeFromRequest(&$request)
Object to access the $_FILES array.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request