MediaWiki API result
This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.
See the complete documentation, or the API help for more information.
{
"error": {
"code": "badupload",
"info": "File upload parameter \"file\" is not a file upload; be sure to use multipart/form-data for your POST and include a filename in the Content-Disposition header.",
"*": "See https://wiki.xmethod.net/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
}
}