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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save file

Status
Not open for further replies.

ddfff

MIS
Sep 27, 2002
125
US
I have a zip file on our webserver. I am trying the following code to allow the user to save the file to the local machine.

<cfheader name="Content-Disposition" value="attachment">
<cfcontent type="application/x-zip-compressed"
file="myzipfile" deletefile="no">

Problem is that it appears as though nothing is happening. The user is not being prompted to open or save. However, it does appear that the above code is executing because if it set deletefile="yes", the file is deleting after running the page.

Could this be a security issue with IE service pack 2?

How can I create a situation where the user is prompted to save or open the file?

Thank you very much in advance.
 
you should only need cfheader and cfcontent if the file is outside of the webspace. if not, a plane hyperlink to the zip file should download it because browers are not (usualy) set as to open a zip file.

If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top