I have a page which displays a .pdf file that is stored in sql database.
Let's say that the cfm template that launches the file is called mytemplate.cfm.
Let's say that the .pdf file stored in the db and being displayed is called mypdf.pdf.
The code in mytemplate.cfm is as follows:
<cfcontent type="application/pdf">
<cfoutput>#tostring(myquery.nameofstoredfile)#</cfoutput>
This launches the .pdf in the browser succesfully.
When, in the browser, I click "save a copy", it wants to save the pdf as
mytemplate.pdf
(the cold fusion name)
instead of mypdf.pdf (the actual name of the file). I want to specify which name appears when the users wants to save the .pdf being displayed.
thanks in advance. Help greatly appreciated.
Let's say that the cfm template that launches the file is called mytemplate.cfm.
Let's say that the .pdf file stored in the db and being displayed is called mypdf.pdf.
The code in mytemplate.cfm is as follows:
<cfcontent type="application/pdf">
<cfoutput>#tostring(myquery.nameofstoredfile)#</cfoutput>
This launches the .pdf in the browser succesfully.
When, in the browser, I click "save a copy", it wants to save the pdf as
mytemplate.pdf
(the cold fusion name)
instead of mypdf.pdf (the actual name of the file). I want to specify which name appears when the users wants to save the .pdf being displayed.
thanks in advance. Help greatly appreciated.