Page MenuHomePhabricator

Please add <> to $wgCopyUploadsDomains
Closed, ResolvedPublic


This is to help speed up the batch upload project for the Portable Antiquities Scheme. Refer to and

Due to the type of JSON queries this is using, a custom python script is being used and has been tested on approximately 18,000 uploads so far, so can be considered stable.

Event Timeline

Hi @Fae, can you clarify licence of the images and the purpose of the addition? If you have a python script, you can upload images without adding to wgCopyUploadsDomains easily.

The licence is CC-BY as stated at

Though I can upload from a local copy, upload from url will speed up the process. At the moment I'm estimating that local uploads will take another 100 days for this batch if we have to stick to local uploads, while I should be able to at least halve that time.

Urbanecm raised the priority of this task from Low to Medium.Jan 20 2017, 8:02 PM

Okay, that's reasonable. I'll handle this.

Change 333294 had a related patch set uploaded (by Urbanecm):
Add * to wgCopyUploadsDomains

Will be deployed at Monday, January 23 14:00–15:00 UTC.

Change 333294 merged by jenkins-bot:
Add * to wgCopyUploadsDomains

Uploads will be from, will * cater for that?

Change 333650 had a related patch set uploaded (by Urbanecm):
[fix] Add without wildcard too

Change 333650 merged by jenkins-bot:
[fix] Add without wildcard too

Mentioned in SAL (#wikimedia-operations) [2017-01-23T14:34:57Z] <addshore@tin> Synchronized wmf-config/InitialiseSettings.php: [[gerrit:333294|T155844 [fix] Add without wildcard too]] (duration: 00m 39s)

@Fae, no, it won't, sorry for it. I've added next rule without the wildcard.

Should be resolved, if it doesn't work, please reopen and tell us!

Both patches deployed in Monday, January 23 14:00–15:00 UTC SWAT (I forgot to ping the ticket with the deployment of the first patch)