-
Notifications
You must be signed in to change notification settings - Fork 14
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
Allow simple file download #3
Comments
Well... I guess this all depends on your browser configuration... The server sends it as plain text... On my computer, clicking on it with Firefox lets me open it with my usual text editor... |
I think @FGasper is referring to the fact that it sends it as plain text, but with the header |
As @bbloomf correctly observes, it's mainly a matter of not sending a HTTP header Line 64 in a10e3d2
It would, however, also have another, less desired effect: if you wanted to save the gabc, the save dialog would probably offer you It would be possible to add - aside of the "Download GABC" - another link "View GABC". It would be handled the same way, except of sending the abovementioned HTTP header. (@olivierberten if you want me to, I will be happy to volunteer to make this change.) Another way, with significantly greater amount of work, would be changing the URL schema, so that gabc download would have a "pretty" URL with a sane filename, e.g. |
@igneus Just set the type to “inline” rather than “attachment”, then specify the filename? |
(I didn’t try this, but as per the spec it might work.) |
It works. Download/save the content from this server:
|
@FGasper I only read https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition and came this way to the wrong assumption that |
Alternatively, maybe add a |
Right now if I want the GABC of a chant, my browser makes me save it to disk. I then have to hunt down that file, open it up, then manipulate it.
How hard would it be to allow a “simple” download of the file — ideally even an “open as text” so I can just cut/paste the text into an editor?
The text was updated successfully, but these errors were encountered: