Board Thread:Support Requests - Getting Technical/@comment-1915363-20161024065517/@comment-25357967-20161024072112

First I would like to point you to the MediaWiki api page about this subject: MW:API:Upload. It's probably quite confusing, but contains a lot of useful information anyway. Please note that Wikia utilizes version 1.19 of MediaWiki, and not all features described there may be available here.

I'll try to get over the different steps here as much as I can:
 * 1) You need an edit token which on Wikia is obtained by sending this to the api:
 * 2) Next up is the actual uploading. You need to verify if you are allowed to upload files with an url only, and if the account you are using the bot with does have that right (upload_by_url).
 * 3) For a different file name, just change the parameter filename to the prefered name
 * 4) (Only when not uploading with an url) Make a POST request with content-type multipart/form-data