Page MenuHomePhabricator

PronunciationRecording: Allow recordings to be uploaded to central media repository (Commons)
Open, MediumPublic


Cross-wiki uploads are the next major step after same-wiki ones.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:04 AM
bzimport set Reference to bz53128.

You should probably start by making a config variable for the API URL. Check out how MobileFrontend does it (

You can export that to JavaScript with .

Then, pass that to the UploadWizard config.

However, you will need to deal with CORS ( In the past, such cross-domain AJAX requests never worked. Now, they can, but only if CORS is configured. You will need to change UploadWizard to deal with this, since it does the actual uploading.

MobileFrontend shows how to handle CORS as well (look at PhotoApi.js).

However, you will not be able to change the production (actual Wikimedia Commons) CORS config to allow access from

You might be able to get permission to test against (Beta Commons) (ccing Antoine for this). Otherwise, you'll need to set up your own destination wiki to test with (separate from

Gilles triaged this task as Medium priority.Nov 24 2014, 2:48 PM
Gilles added a subscriber: Gilles.
Restricted Application added subscribers: Steinsplitter, Matanya, Aklapper. · View Herald TranscriptAug 22 2015, 6:48 AM
Jdforrester-WMF moved this task from Untriaged to Backlog on the Multimedia board.Sep 4 2015, 6:38 PM
matmarex added a subscriber: matmarex.

I think a lot of what you need here is now abstracted away in mw.Upload.

Qgil removed a subscriber: Qgil.Mar 17 2016, 10:55 AM