Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1039
  • Last Modified:

user suddenly being prompted to save or open .cfm file (rather than opening .pdf file)

Hi experts.  Let me preface this by saying, we have a couple of hundred users who are NOT experiencing this.  and ONE user who is.  (She thinks she may have been prompted to "download" an update or something??? That's all the information I can get, but she's changed something).

I have a page which serves up pdfs (prefilled or empty).  The page is "action.cfm".  Contains this line:

<cfcontent type="application/vnd.fdf">
<cfinclude template="/forms/template.fdf">

When this ONE user tries to open a pdf, she is prompted to OPEN or SAVE action.CFM. (note, the cfm file, not the PDF)

Can anyone think of what might be causing this for her?

Thank you very much!
1 Solution
You possibly need to use something like <CFHEADER NAME="content-disposition" VALUE="attachment; filename=template.fdf">

The CFHEADER makes sure that the name of the file that is given to the user is that of the file to download, because otherwise user will see the name of the page eg. action.cfm rather than that of the pdf.

I use the following code for a download of a standard pdf where I pass in the name of the pdf.

<CFHEADER NAME="content-disposition" VALUE="attachment; filename=#attributes.PDFFile#.pdf">
<CFCONTENT TYPE="application/unknown" FILE="#request.PDFPath##attributes.PDFFile#.pdf" DELETEFILE="No">
whaleykAuthor Commented:
Hi Mr. Nil.  Thanks for the suggestion.  The problem with that is, it then asks if i want to open or save the pdf/fdf.  

With the existing code, I have over 200 users who currently have no problems and the pdf just fires up in their browser.  It's just this one user.  
i expected it's an issue with acrobat> I've had the same thing happen

check out


specifically #9

if those steps don't work try an uninstall/reinstall of reader.
Try this reader instead  http://www.foxitsoftware.com/  foxit reader way better than adobe.

Also this is most likely a security setting in her browser.  I have my firefox set to download the pdf instead of displaying in the browser.  This setting may have been changed on her pc.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now