Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

safari browser downloads

Status
Not open for further replies.

tweenerz

Programmer
Mar 25, 2002
202
US
I have a site that creates a page where the header "Content-Disposition" is "attachment" in order to prompt the browser to download the file onto the users machine as opposed to displaying it in the browser window.

Everything works fine in all browsers, including Safari, except for one thing. Safari places the text ", attachment" at the end of the filename. I know all you have to do is simply change the name afterwards, but my client, infortunately, doesn't want to do that.

Is there another way top force a download in safari that doesnt cause safari to change the name of the file? If I have to detect what browser they are using, I will. I realize this may be a programmers question, but I am not sure where in the process this is happening.
 
Never mind. I finally figured it out. I had to surround the filename in quotes which I wasn't doing. Safari was the only one who required that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top