Has anyone come across something like this:
I have a pdf file that i want to be able to deliver to the user, by the click of a button.
When this button is clicked i get the file from the directory, and deliver it to the user using cfcontent.
this is the code for the cfcontent:
<cfheader name="Content-Type" value="Unknown">
<cfheader name="Cache-Control" value="private">
<cfheader name="Content-Disposition" value="Attachment;Inline;Filename=#qryFile.OriginalFileName#">
<cfcontent type="Application/Unknown" file="#FileDeliver#" deletefile="No">
<cfabort>
this code will pop up with the open/save option within IE. It works if i say save, and save the document and then open it. if i say open, it does something and then opens PDF viewer and then throws an error saying it can't open the file as it can't be found.
doing the same thing in firefox/other browser works. Anyone come across this/know a fix?
TIA
Tony
I have a pdf file that i want to be able to deliver to the user, by the click of a button.
When this button is clicked i get the file from the directory, and deliver it to the user using cfcontent.
this is the code for the cfcontent:
<cfheader name="Content-Type" value="Unknown">
<cfheader name="Cache-Control" value="private">
<cfheader name="Content-Disposition" value="Attachment;Inline;Filename=#qryFile.OriginalFileName#">
<cfcontent type="Application/Unknown" file="#FileDeliver#" deletefile="No">
<cfabort>
this code will pop up with the open/save option within IE. It works if i say save, and save the document and then open it. if i say open, it does something and then opens PDF viewer and then throws an error saying it can't open the file as it can't be found.
doing the same thing in firefox/other browser works. Anyone come across this/know a fix?
TIA
Tony