Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: upload source not local, but from URL #6

Open
edoderoo opened this issue Jul 19, 2016 · 18 comments
Open

Feature request: upload source not local, but from URL #6

edoderoo opened this issue Jul 19, 2016 · 18 comments

Comments

@edoderoo
Copy link

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.

@yarl
Copy link
Owner

yarl commented Jul 19, 2016

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

@Lanbot84
Copy link

Lanbot84 commented Nov 1, 2017

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!

@Abbe98
Copy link
Collaborator

Abbe98 commented Nov 2, 2017

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

@yarl
Copy link
Owner

yarl commented Nov 2, 2017

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

@Abbe98
Copy link
Collaborator

Abbe98 commented Nov 3, 2017 via email

@Lanbot84
Copy link

Lanbot84 commented Nov 3, 2017

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

@yarl
Copy link
Owner

yarl commented Nov 4, 2017

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 added a commit that referenced this issue Nov 4, 2017
Adds support for uploading by URL #6
@Reniervdg
Copy link

@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.

@Abbe98
Copy link
Collaborator

Abbe98 commented Dec 11, 2017

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

@Reniervdg
Copy link

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?

@yarl
Copy link
Owner

yarl commented Dec 18, 2017

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

@Reniervdg
Copy link

@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?

@Abbe98
Copy link
Collaborator

Abbe98 commented Jan 12, 2018

@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... :-)

@Reniervdg
Copy link

@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.

@Abbe98
Copy link
Collaborator

Abbe98 commented Jan 12, 2018

@Reniervdg you need the user right upload_by_url, see:

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

@Reniervdg
Copy link

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
Copy link

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!

Abbe98 added a commit that referenced this issue Feb 7, 2022
Fix freezing when clicking log link on Linux
@Abbe98 Abbe98 reopened this May 26, 2022
@Abbe98
Copy link
Collaborator

Abbe98 commented May 26, 2022

Reopened as it's still not documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants