pattypan icon indicating copy to clipboard operation
pattypan copied to clipboard

Feature request: upload source not local, but from URL

Open edoderoo opened this issue 9 years ago • 18 comments

In case files are stored online, it could be helpful if the Excel sheet can point out to a list of URLs instead of local file names.

edoderoo avatar Jul 19 '16 08:07 edoderoo

Yes, this is definitely planned, should be ready for next bigger release.

yarl avatar Jul 19 '16 10:07 yarl

Hi, I was wondering what the status of this request is? I am working at an archive for whom this would be very useful and would like to give them a time frame for the development if possible? Thanks so much!

Lanbot84 avatar Nov 01 '17 14:11 Lanbot84

I'm working on this actually, hoping to make a pull request this weekend.

Abbe98 avatar Nov 02 '17 20:11 Abbe98

Sweet, thanks @Abbe98. Just to be sure, you want to implement it using https://www.mediawiki.org/wiki/API:Upload#Uploading_from_URL?

yarl avatar Nov 02 '17 22:11 yarl

Yep, it has been added go the .org.wikipedia package so I update it...

On Nov 2, 2017 23:30, "Paweł Marynowski" [email protected] wrote:

Sweet, thanks @Abbe98 https://github.com/abbe98. Just to be sure, you want to implement it using https://www.mediawiki.org/ wiki/API:Upload#Uploading_from_URL?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yarl/pattypan/issues/6#issuecomment-341577371, or mute the thread https://github.com/notifications/unsubscribe-auth/ACgoJ66EnviDdbpleewkf11ivLNpuBx4ks5sykKOgaJpZM4JPffI .

Abbe98 avatar Nov 03 '17 05:11 Abbe98

Great @Abbe98, I am looking forward to it! Thanks so much!

Lanbot84 avatar Nov 03 '17 12:11 Lanbot84

Code is almost done, but it looks it won't work, due to Commons configuration. Check this ticket on Phabricator.

https://phabricator.wikimedia.org/T140040

yarl avatar Nov 04 '17 14:11 yarl

@yarl Thanks fot your work on this issue. Created an issue on Phabricator: https://phabricator.wikimedia.org/T181713 My domain got whitelisted, but uploading doesn't work yet, see my comment of Fri, Dec 8, 10:26 AM.

Reniervdg avatar Dec 11 '17 10:12 Reniervdg

@Reniervdg are you using a custom build of Pattypan? Uploading by URL has not landed in a release yet.

Abbe98 avatar Dec 11 '17 11:12 Abbe98

No, I'm not using a custom build. I was under the impression that uploading by URL was already integrated, but apparently I was wrong, my apologies. When is a new release scheduled, if I may ask?

Reniervdg avatar Dec 11 '17 15:12 Reniervdg

@Reniervdg I will do my best to release is this week. Sorry for possible inconvenience 🙂 .

yarl avatar Dec 18 '17 19:12 yarl

@yarl Great, I think this will benefit a lot of people.

I have tested Pattypan for my own project. However, when using it I receive this error: "filename does not include a valid file extension" The output from our archival information system comes in the form of this type of URL: https://studiezaal.nijmegen.nl/HttpHandler/icoon.ico?file=14102767 (as explained in the Phabricator-issue https://phabricator.wikimedia.org/T181713). Pattypan apparently cannot process this type of URL currently. Can this be remedied somehow?

Reniervdg avatar Jan 12 '18 11:01 Reniervdg

@Reniervdg note that the name column in the spreadsheet needs to include and end with the file extension(in this case .tif).

I should write documentation for this feature... :-)

Abbe98 avatar Jan 12 '18 12:01 Abbe98

@Abbe98 Thanks for the explanation. Validation of the spreadsheet is now succesful! However, when I go to actually upload a file + metadata, I receive the error "Permission denied: cannot upload files via URL" What's going on? I'm using Pattypan version 17.12.

Reniervdg avatar Jan 12 '18 13:01 Reniervdg

@Reniervdg you need the user right upload_by_url, see:

https://commons.wikimedia.org/wiki/Commons:Upload_tools#Upload_by_URL

Abbe98 avatar Jan 12 '18 15:01 Abbe98

I didn't know, thank you! I've applied for this user right via https://commons.wikimedia.org/wiki/Commons:Requests_for_rights#Reniervdg

Reniervdg avatar Jan 12 '18 15:01 Reniervdg

User right granted. :) Everything is working like a charm now. Thank you @yarl for adding the upload via URL-feature and thank you @Abbe98 for helping me along!

Reniervdg avatar Jan 12 '18 15:01 Reniervdg

Reopened as it's still not documented.

Abbe98 avatar May 26 '22 17:05 Abbe98