This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
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 multipart/form-data) when sending the file.
Target filename.
Upload comment. Also used as the initial page text for new files if text is not specified.
Change tags to apply to the upload log entry and file page revision.
Initial page text for new files.
Watch the page.
Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.
Ignore any warnings.
File contents.
URL to fetch the file from.
Key that identifies a previous upload that was stashed temporarily.
Same as filekey, maintained for backward compatibility.
If set, the server will stash the file temporarily instead of adding it to the repository.
Filesize of entire upload.
Offset of chunk in bytes.
Chunk contents.
Make potentially large file operations asynchronous when possible.
Only fetch the upload status for the given file key.
A "csrf" token retrieved from action=query&meta=tokens