Manual:UploadBase.php

From MediaWiki.org
Jump to: navigation, search

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

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

Functions[edit]

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