Single-click download jpg (instead of right-clilck -> save as...)
Posted on 2007-08-09
Haven't figured this out... Gmail gives you two links for attached jpgs - a View and Download link. The view link works like any link, it opens the jpg in the browser. The download however asks you to download the file. How?
Every other site I've seen that wants their visitor to download a jpg puts instructions on the screen to right-click and select "Save as..." How did Google get the browser to skip those steps?
I've inspected the headers with Fiddler HTTP Debugging Proxy, but it shows the Content-Type and everything else being the same between the view and download links.
I would love to know how they do this.