MediaWiki:Apierror-badupload
From DISCO3.CO.UK Knowledge Base
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.