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.
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.