Im writing a web application at the moment, and the client has requested that when clicking on a link to a file, that a 'save target as' dialogue box automatically appears, instead of having the content opening in the browser.
Does anyone have any suggestions for this?
rocknbil
8:37 am on Feb 13, 2007 (gmt 0)
The browser will always try to "sniff out" the file type and apply a "helper application" to manage the file unless you supply it with an unrecognized content-type header. Since it doesn't know how to manage a file of this type, it will prompt a download.
Discussion from a week before last [webmasterworld.com] that also provides a cool way to populate the file name field in the dialogue box.