API:Edit - Uploading files
From MediaWiki.org
| This page is part of the MediaWiki API documentation. |
| Languages: |
English |
[edit] Image/File Uploading
| MediaWiki version: | PROPOSED |
api.php ? action=upload
| Post parameters | |||
| Parameter name | Value | Default | Comment |
|---|---|---|---|
| upfile | <file_contents> | ||
| updestfile | <filename> | ||
| upsummary | <summary> | ||
| [ upwatch ] | yes/no | no | |
| [ upignore ] | yes/no | no | |
| [ uplicense ] | <license> | ||
| [ upuserid ] | <userid> | Parameter identifying the logged user uploading the file | |
| [ upusertoken ] | <lgtoken> | Parameter identifying the logged user uploading the file | |
<api> <upload result="SUCCESS" title="Ejemplo.jpg" ns="6" /> </api>

