P
pd
guys,
in my web app, i have a simple download button and a href which points
to a file on my server, when the user clicks on the button or the
link, the file should simply be downloaded to the users machine. now
this file is a postgres backup file with the .backup extension.
now when i use the button, in FF the file download button pops up and
i can save the file, i can also right click the href and go save link
as. and it works fine.
but when i use the button or link in IE, it simply opens up the file
in IE as text and displays a bunch a garbage. now the user needs to be
able to download the file and not view it. also on the href link, when
the right clicks and goes save target as IE automatically adds
the .html extension to the file. now i dont have the .backup extension
in my registered file types.
just to end, my href is, <a href="http://localhost:8080/Backup/
Today.backup">Download</a> and the button is,
<input type="button" value="Download" onclick="location.href('http://
localhost:8080/Backup/Today.backup')">
please help me. all i want the user to be able to do is, to download
the file, and they can either go right click and save target or just
click on it and the download dialog should pop up. thanks.
in my web app, i have a simple download button and a href which points
to a file on my server, when the user clicks on the button or the
link, the file should simply be downloaded to the users machine. now
this file is a postgres backup file with the .backup extension.
now when i use the button, in FF the file download button pops up and
i can save the file, i can also right click the href and go save link
as. and it works fine.
but when i use the button or link in IE, it simply opens up the file
in IE as text and displays a bunch a garbage. now the user needs to be
able to download the file and not view it. also on the href link, when
the right clicks and goes save target as IE automatically adds
the .html extension to the file. now i dont have the .backup extension
in my registered file types.
just to end, my href is, <a href="http://localhost:8080/Backup/
Today.backup">Download</a> and the button is,
<input type="button" value="Download" onclick="location.href('http://
localhost:8080/Backup/Today.backup')">
please help me. all i want the user to be able to do is, to download
the file, and they can either go right click and save target or just
click on it and the download dialog should pop up. thanks.