Earlier 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.
I agree that the Acrobat plugin was a pain (and I always made sure to disable it in Firefox), but I absolutely love the Firefox in-browser PDF viewer. It doesn't lock up the PC while loading, and it has a convenient download button that doesn't seem to redownload the PDF when clicked (much like saving an already loaded image).
“Right click and save as” needs to go away
121–130 of 194 posts
Re: “Right click and save as” needs to go away
#122Earlier quoted context omitted.
> 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 being served is server side. The server configuration is server side. The problem is when you want to offer both a view and a download link. Your solution requires offering two different URLs for that, which also breaks caching in the case where a user first wants to…
On the contrary, our solution as implemented on our CDN uses a query string parameter numbered 1 - 8 to select one of those sets which are then set by the server in the response. So you can choose it on the fly for any file.
Re: “Right click and save as” needs to go away
#123Earlier quoted context omitted.
That folder never gets cleared.
From what I know applications are meant to clean up after themselves.
Re: “Right click and save as” needs to go away
#124One 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…
2013-01-01-invoice.pdf sorts better for my purposes.
Re: “Right click and save as” needs to go away
#125Earlier quoted context omitted.
If Chrome didn't offer any way to 'save as' a PDF that it was displaying (really?!?), that's clearly Chrome's problem.
there are at least 3 ways to save an opened pdf with chromes viewer.
Re: “Right click and save as” needs to go away
#126Earlier quoted context omitted.
Browsers (or site owners) could probably do a better job of differentiating links with download attributes. Maybe on mouse over show a little download cursor or something.
To show an icon on hover over a link on the browser side it would require browsers to make an HTTP HEAD request for each link to see if it has the "Content-Disposition: Attachment" header. That would add a lot of overhead to the page load, so I don't think it would be added to any browser. However, it seems like a good candidate for a browser plugin for those who have fast connections and don't mind.
a[download]:after {
/* add an icon or something */
}Re: “Right click and save as” needs to go away
#127Earlier quoted context omitted.
On the contrary, our solution as implemented on our CDN uses a query string parameter numbered 1 - 8 to select one of those sets which are then set by the server in the response. So you can choose it on the fly for any file.
But as far as browsers are concerned http://x.com?y and http://x.com?z are two different URLs, right?
As a VDN (video delivery network) we're focused on 100MB - 8GB video files, so our clients' primary goal is to avoid ever having the file attempt to display in the browser unless as a media URL purposely supplied to an embedded player. In general a raw video file URL would be for a download, and forcing Content Disposition saves having to explain the "Right-click, Save As..." dance regardless of browser.
Re: “Right click and save as” needs to go away
#128There 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
#129Earlier quoted context omitted.
so would the browser be enforcing that? Or the server? Because both options are unacceptable.
Why are both unacceptable? Server enforcing downloading/viewing measn the user couldn't override its choice, but providing both links avoids that issue.
If the server was in charge, then most websites would screw it up through incompetence or malice.
Two links for every link, or have the server (an entity who doesn't necessarily have the users interest in mind) having more control over what the user can do with the content it sends.
Both options suck.
To be fair? I got responses in favor of both options.
Re: “Right click and save as” needs to go away
#130There 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…