{"push_id":768471954,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"ee7132a55208b1319a28bb85ea8aa752992e7740","before":"3de58a4990591bb5e85d8f2454144642c54aac5b","commits":[{"sha":"ee7132a55208b1319a28bb85ea8aa752992e7740","author":{"email":"2d1e1b620879a2330241034f908c878d89499102@gmail.com","name":"Bartosz Dziewoński"},"message":"mediawiki.api.uploadWithFormData: Implement in terms of existing mw.Api functionality\n\n* mw.Api#ajax can already handle FormData, if instructed to, since\n  d19432a332c21935d42087db706e50c5259063ea (which seems to have been a\n  part of mobile uploads experiments).\n* MobileFrontend's api.js already had code to provide upload progress\n  events while using mw.Api, lifted it from there.\n\nWith this change, we should be able to just use mw.ForeignApi (being\nadded in Ic20b9682d28633baa87d22e6e9fb71ce507da58d) to upload to a\ndifferent wiki. (Assuming that the browser supports FormData.)\n\nAdditionally:\n\n* Improve detection of whether we can use FormData: if we are given a\n  HTMLInputElement, try to get a File from it before we fall back to\n  iframe form upload.\n* mediawiki.api.edit: In #postWithEditToken, pass through the\n  ajaxOptions parameter to #postWithToken.\n\nChange-Id: Ib9abe32ee3320c67ac0a4544c942b844a5550562","distinct":true,"url":"https://api.github.com/repos/wikimedia/mediawiki/commits/ee7132a55208b1319a28bb85ea8aa752992e7740"}]}