Go to the documentation of this file.
41 $upload = $request->getUpload(
'wpUploadFile' );
42 $desiredDestName = $request->getText(
'wpDestFile' );
43 if ( !$desiredDestName ) {
44 $desiredDestName =
$upload->getName();
56 $this->mUpload = $webRequestUpload;
58 $this->mUpload->getTempName(), $this->mUpload->getSize() );
66 # Allow all requests, even if no file is present, so that an error
67 # because a post_max_size or upload_max_filesize overflow
82 # Check for a post_max_size or upload_max_size overflow, so that a
83 # proper error can be shown to the user
84 if ( is_null( $this->mTempPath ) || $this->
isEmptyFile() ) {
85 if ( $this->mUpload->isIniSizeOverflow() ) {
97 return parent::verifyUpload();
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
WebRequestUpload $mUpload
initializeFromRequest(&$request)
wfShorthandToInteger( $string='')
Converts shorthand byte notation to integer form.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
Object to access the $_FILES array.
initialize( $name, $webRequestUpload)
Initialize from a filename and a WebRequestUpload.
Allows to change the fields on the form that will be generated $name
isEmptyFile()
Return true if the file is empty.
usually copyright or history_copyright This message must be in HTML not wikitext $subpages will be ignored and the rest of subPageSubtitle() will run. 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink' whether MediaWiki currently thinks this is a CSS JS page Hooks may change this value to override the return value of Title::isCssOrJsPage(). 'TitleIsAlwaysKnown' whether MediaWiki currently thinks this page is known isMovable() always returns false. $title whether MediaWiki currently thinks this page is movable Hooks may change this value to override the return value of Title::isMovable(). 'TitleIsWikitextPage' whether MediaWiki currently thinks this is a wikitext page Hooks may change this value to override the return value of Title::isWikitextPage() 'TitleMove' use UploadVerification and UploadVerifyFile instead where the first element is the message key and the remaining elements are used as parameters to the message based on mime etc Preferred in most cases over UploadVerification object $upload
initializePathInfo( $name, $tempPath, $fileSize, $removeTempFile=false)
Initialize the path information.
static isValidRequest( $request)
Implements regular file uploads.