When you connect to this website, you send your IP address and sometimes some cookies. You may also give us personal identifying information, such as your name and contact information. All this data is used to securely provide you with the services that you request. We encourage you to review our privacy policy to make sure that you understand how your data is managed, and to contact us if you have any questions. View Privacy Policy

MediaWiki:Apihelp-upload-description

From NASPAWiki

You are viewing a condensed mobile version of this NASPA webpage.
Switch to full version.

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

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.