MediaWiki:Apihelp-upload-description/en

Upload a file, or get the status of pending uploads.

Several methods are available: Note that the HTTP POST must be done as a file upload (i.e. using ) when sending the $1file.
 * Upload file contents directly, using the $1file parameter.
 * Upload the file in pieces, using the $1filesize, $1chunk , and $1offset parameters.
 * Have the MediaWiki server fetch a file from a URL, using the $1url parameter.
 * Complete an earlier upload that failed due to warnings, using the $1filekey parameter.