MediaWiki:Apihelp-upload-param-statuskey/qqq

From translatewiki.net
Jump to: navigation, search

Note This message uses technical terminology. Do not translate it, if you are unsure of the meaning this message has in context.

Note Do not translate Special:ApiHelp in this message, nor the words between ; and : signs.

Note Do not translate text inside <var></var>, <kbd></kbd>, <samp></samp>, or <code></code> in this message.

This is a MediaWiki Action API parameter description for the "statuskey" parameter to the "upload" module. See API:Main page at MediaWiki.org for general information.

Parameters:

  • $1 - Module parameter prefix, e.g. "bl"
  • $2 - Parameter name (without prefix), e.g. "title"
  • $3 - Module name, e.g. "backlinks"
  • $4 - Module path, e.g. "query+backlinks"

For other messages relating to this module, see:

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.")