⧼api-help-title⧽
action=upload
(main | upload)
- ⧼api-help-flag-readrights⧽
- ⧼api-help-flag-writerights⧽
- ⧼api-help-flag-mustbeposted⧽
- ⧼api-help-source⧽
- ⧼api-help-license⧽
- filename
- ⧼apihelp-upload-param-filename⧽
- comment
- ⧼apihelp-upload-param-comment⧽
- Default: (empty)
- tags
- ⧼apihelp-upload-param-tags⧽
- Values (separate with U+007C (pipe), or prefix the list with U+001F and separate with U+001F):
- text
- ⧼apihelp-upload-param-text⧽
- watch
- ⧼api-help-param-deprecated⧽
- ⧼apihelp-upload-param-watch⧽
- Type: boolean
- watchlist
- ⧼apihelp-upload-param-watchlist⧽
- One of the following values: nochange, preferences, watch
- Default: preferences
- ignorewarnings
- ⧼apihelp-upload-param-ignorewarnings⧽
- Type: boolean
- file
- ⧼apihelp-upload-param-file⧽
- Must be posted as a file upload using multipart/form-data.
- url
- ⧼apihelp-upload-param-url⧽
- filekey
- ⧼apihelp-upload-param-filekey⧽
- sessionkey
- ⧼api-help-param-deprecated⧽
- ⧼apihelp-upload-param-sessionkey⧽
- stash
- ⧼apihelp-upload-param-stash⧽
- Type: boolean
- filesize
- ⧼apihelp-upload-param-filesize⧽
- Type: integer
- The value must be between 0 and 104,857,600.
- offset
- ⧼apihelp-upload-param-offset⧽
- Type: integer
- The value must be no less than 0.
- chunk
- ⧼apihelp-upload-param-chunk⧽
- Must be posted as a file upload using multipart/form-data.
- async
- ⧼apihelp-upload-param-async⧽
- Type: boolean
- checkstatus
- ⧼apihelp-upload-param-checkstatus⧽
- Type: boolean
- token
- ⧼api-help-param-token⧽
- This parameter is required.
- ⧼apihelp-upload-example-url⧽
- api.php?action=upload&filename=Wiki.png&url=http%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&token=123ABC ⧼api-help-open-in-apisandbox⧽
- ⧼apihelp-upload-example-filekey⧽
- api.php?action=upload&filename=Wiki.png&filekey=filekey&ignorewarnings=1&token=123ABC ⧼api-help-open-in-apisandbox⧽