API:Upload

Uploading
Upload action allows to upload a file to MediaWiki Server. At this first stage, only image files can be uploaded, but it will be possible to extend the functionality to audio or video files. As in RegUser action, most parameters are passed via POST to protect sensible information and to allow higher size of information, specially for the file itself. Sample request and response:

Multipart post request: api.php ? action=upload Post parameters: upfile= upsourcetype = updestfile =  upsummary=Summary [ upwatch = yes/no ] [ upignore = yes/no ] [ uplicense = License ] [ upuserid = userId ]               Parameter identifying the logged user uploading the file [ uplgtoken = lgToken ]             Parameter identifying the logged user uploading the file

Response: status: Success			Other values: Prohibited, Overwritten, DbLocked, FileExists title: Image:Filename.jpg	       Always returns normalized title ns: 6                                Show title’s namespace except when ns=0