Earlier quoted context omitted.
Don't other browsers have a "temporary downloads" folder? For when you select "open this file with (...)" in the download dialog? Opera does. Now I finally sort of understand why people like opening PDFs in browser plugins, I suppose ... > I usually end up with a clusterfuck of a download directory (mine has 20 GB already in half a year, most of it is one-off downloads!) yeah well but that is your own fault for savin…
Windows does not have a /tmp, and Chrome doesn't offer an easy(!) way to switch download locations per download.
“Right click and save as” needs to go away
81–90 of 194 posts
Re: “Right click and save as” needs to go away
#82Earlier quoted context omitted.
Which is funny, because I absolutely loathe opening in the browser, I prefer saving it. Chrome and FF PDF viewers are better, but with Acrobat it was a bag of hurt. Also, see: saving is the more generic answer. Save and you can see it, open it and before the Chrome 'save' button you had to re-download it.
On Windows I've yet to see any PDF viewer that's faster or better than Sumatra. All the in-browser ones are a bit slow and lacking in features.
Re: “Right click and save as” needs to go away
#83One small nitpick: please please don't make all your files download with a single filename. In the article it gives an example of "fixing" a hideous generated filename like "203759-fs3.pdf" to download as "invoice.pdf". Yes this is a little nicer, but please be _even_ nicer and put other relevant info in the filename, "invoice-2013-01-01.pdf" is infinitely more useful to me. Context: My bank forces statement download…
Re: “Right click and save as” needs to go away
#84There are already ways to force browsers to download using HTTP headers. The author says this is a "server-side solutions to front-end problem", okay. But anyways, when pages use this already, it OFTEN pisses me off, when I want to look at a PDF in browser, but the web app/page is forcing me to save it to disk and then re-open it in another app. What we _really_ need, that we _don't_ have a way to do right now -- is…
Re: “Right click and save as” needs to go away
#85For everyone complaining that they don't want to be forced to download--just have two buttons: March Invoice: View - Download This is much clearer for the average user than a single link with hidden right click functionality. Currently clicking on a link you have no idea what you're going to get.
so would the browser be enforcing that? Or the server? Because both options are unacceptable.
At least it's not Javascript.
Re: “Right click and save as” needs to go away
#86Who was still using 'Right click and save as'?
Re: “Right click and save as” needs to go away
#87> There are or course other ways of forcing file downloads, such as adding certain configuration to your .htaccess file, but I think server-side solutions to front-end problems should be avoided whenever possible. I'd disagree with this being a "Front End" problem. You, serving the file, presumably have an idea what you want the user to do with the file. The .html page you propose editing is server side. The file bei…
Re: “Right click and save as” needs to go away
#88There are already ways to force browsers to download using HTTP headers. The author says this is a "server-side solutions to front-end problem", okay. But anyways, when pages use this already, it OFTEN pisses me off, when I want to look at a PDF in browser, but the web app/page is forcing me to save it to disk and then re-open it in another app. What we _really_ need, that we _don't_ have a way to do right now -- is…
Content-Disposition attachement is one of the hardest things to implement when you have UTF-8 filenames. You have to browser sniff, and even then I have haven't found a good solution. Does anyone know of a good resource that explains all the edge cases that must be handled?
The link is from http://stackoverflow.com/questions/93551/how-to-encode-the-f...
Re: “Right click and save as” needs to go away
#89There are already ways to force browsers to download using HTTP headers. The author says this is a "server-side solutions to front-end problem", okay. But anyways, when pages use this already, it OFTEN pisses me off, when I want to look at a PDF in browser, but the web app/page is forcing me to save it to disk and then re-open it in another app. What we _really_ need, that we _don't_ have a way to do right now -- is…
Content-Disposition attachement is one of the hardest things to implement when you have UTF-8 filenames. You have to browser sniff, and even then I have haven't found a good solution. Does anyone know of a good resource that explains all the edge cases that must be handled?
Summary: most modern browsers including IE9 support RFC2231/5987. (Edit: see my other comment in this thread for IE6-8.)
Another option is to leave out the troublesome "filename" parameter altogether and use the last part of the URL to convey the same information, e.g. /files/uploads/2013//filename.ext. After all, most browsers already understand how percent-encoding works in the URL. With today's URL rewriting engines, this shouldn't be too difficult to achieve regardless of how your files are actually organized on disk or which language you use to perform access control. It would be as if the client were requesting a static file.
[1] http://greenbytes.de/tech/tc2231/
[2] http://stackoverflow.com/questions/7967079/special-character...
Re: “Right click and save as” needs to go away
#90QWERTY keyboards need to go away, but they are design patterns that people are used to. Any file the browser would normally try to display natively or through a plugin can be forced to download using this attribute. What if you want to do the opposite? Are we going to have to do "Right+click and Open in Browser"? What about mobile? Also, as far as I'm aware this issue is only really with PDF files, as virtually every…
It's worse with XML files, source code and some kinds of data files (generic separated by char). Browsers try to open those, and remove important data from the display (and the copy buffer).