Manual:UploadBase.php

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

Functions
Return the local file and initializes if necessary.
 * Really perform the upload. Stores the file in the local repo, watches if necessary and runs the UploadComplete hook.