Manual:UploadBase.php
MediaWiki file: UploadBase.php | |
---|---|
Location: | includes/upload/ |
Source code: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Classes: | UploadBase |
UploadBase and subclasses are the backend of MediaWiki's file uploads. The frontends are formed by ApiUpload and SpecialUpload.
Functions
UploadBase::performUpload( $comment, $pageText, $watch, $user )
– Really perform the upload. Stores the file in the local repo, watches if necessary and runs the UploadComplete hook.UploadBase::getLocalFile()
– Return the local file and initializes if necessary.