How do I stop the response object from renaming files?
-
I have an file management tool that has just one problem that I can not figure out. The files are stored in an MsSQL 2005 db and can be retrieved with no problem. The problem comes when the response object renames it. Example if the file is name "file 1.doc" then when the IE response sends it to the client it is renamed "file_1.doc" but FF renames it "File" with no "1" or file extension rendering it useless. Any ideas on what could be causing this and what can be done to stop it?
-Al
-
I have an file management tool that has just one problem that I can not figure out. The files are stored in an MsSQL 2005 db and can be retrieved with no problem. The problem comes when the response object renames it. Example if the file is name "file 1.doc" then when the IE response sends it to the client it is renamed "file_1.doc" but FF renames it "File" with no "1" or file extension rendering it useless. Any ideas on what could be causing this and what can be done to stop it?
-Al
Are you setting the filename in the response? Something like:
Response.AppendHeader("content-type", "inline;filename=file.doc")
-
Are you setting the filename in the response? Something like:
Response.AppendHeader("content-type", "inline;filename=file.doc")