Page MenuHomePhabricator

Please add to the wgCopyUploadsDomains whitelist of Wikimedia Commons
Closed, DeclinedPublic


I am trying to create an app which uploads photos from twitter to commons.

When I am trying to upload images with 'url' parameter it returns
{"code":"copyuploadbaddomain","info":"Uploads by URL are not allowed from this domain."}

The url format is like this: '****'

I want to test the feature on test Wikipedia so is it possible to add that URL to test Wikipedia Whitelisitng as well?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 24 2018, 7:56 PM

@Jnanaranjan_sahu: Hi, is this a request to add a URL to $wgCopyUploadsDomains for Wikimedia Commons?
If it is, please see for more information.

This seems to be unrelated to the extension hence removing that project tag.

Sorry for the wrong tag and thank you for the information.

I see there is a different process to request for this task. Shall I create new one or just edit this?

Jnanaranjan_sahu renamed this task from Add new url to upload photos using API to Please add to the wgCopyUploadsDomains whitelist of Wikimedia Commons.Nov 24 2018, 8:39 PM
Jnanaranjan_sahu updated the task description. (Show Details)
Framawiki added a subscriber: Framawiki.

Usually only websites that host Commons-usable files (free ones) are added to the whitelist.
This domain is the media hoster for Twitter, that contains a lot of unfree files. I don't think it's a good idea to whitelist that domain.

@Jnanaranjan_sahu It's still possible to design your app to download locally the picture from twitter server then upload it to Commons. $wgCopyUploadsDomains is only for direct upload by URL.

Well we have re licensed the govt official twitter accounts to open license. I am building tool for that.

I know the method you have suggested and now currently working on that method. But if sometimes the load gets more them that will put extra load on my server.

I am okay with either way.

Note: I am stuck at the file upload using 'file' parameter :). Wish me good luck!

Framawiki closed this task as Declined.Jun 15 2019, 1:41 PM

Closing as declined following my comment in T211464#5260653.