⚠️ Spam Cleanup in Action!

Please be aware we are cleaning up spam users from this site along with any spam articles. If you find some spam, report it on the forum.

MediaWiki:Apihelp-upload-extended-description

From Project Homelab
Jump to navigation Jump to search

Several methods are available:

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

Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when sending the $1file.