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

Posted on 2006-04-21
Last Modified: 2013-12-24
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!
Question by:whaleyk
    LVL 10

    Expert Comment

    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">

    Author Comment

    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.  
    LVL 36

    Accepted Solution

    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.
    LVL 9

    Expert Comment

    Try this reader instead  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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now