Apihelp-upload-extended-description

From LNTwww

Several methods are available:

  • Upload file contents directly, using the $1file</var> parameter. * Upload the file in pieces, using the <var>$1filesize, $1chunk</var>, and <var>$1offset parameters.
  • Have the MediaWiki server fetch a file from a URL, using the $1url</var> parameter. * Complete an earlier upload that failed due to warnings, using the <var>$1filekey parameter.

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