mwbot: improve file_url, fix upload