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

x
  • 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!
0
whaleyk
Asked:
whaleyk
1 Solution
 
Mr_NilCommented:
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">
0
 
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.  
0
 
SidFishesCommented:
i expected it's an issue with acrobat> I've had the same thing happen

check out

http://www.adobe.com/support/techdocs/328233.html

specifically #9

if those steps don't work try an uninstall/reinstall of reader.
0
 
73SpyderCommented:
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.
0

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