MediaWiki:Apierror-badupload

File upload parameter $1 is not a file upload; be sure to use multipart/form-data for your POST and include a filename in the Content-Disposition header.