From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:UploadBase.php and the translation is 40% complete.

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎日本語

UploadBase and subclasses are the backend of MediaWiki's file uploads. The frontends are formed by ApiUpload and SpecialUpload.


  • 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.