2009/11/23 Jani Patokallio <[email protected]>:
> 2009/11/23 Roan Kattouw:
>> You need to use action=import, not action=upload to import files.
>> Uploading the file as described there does not mean uploading it with
>> action=upload, but uploading/embedding it in an HTTP request to
>> action=import.
>
> Thanks, but can you give me the exact format and preferably a sample
> request for doing this?  It's not clear from the documentation.
>
It's done the exact same way as uploading a file with action=upload,
except that the name of the parameter is 'xml', not 'file'. I've
updated the documentation for import [1] and upload [2] to mention
this.

Roan Kattouw (Catrope)

[1] http://www.mediawiki.org/wiki/API:Edit_-_Import
[2] http://www.mediawiki.org/wiki/API:Edit_-_Uploading_files

_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to