Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<cfcontent gives me 500 server error

Status
Not open for further replies.

AmirS

Programmer
Apr 29, 2008
2
0
0
CA

Hi,

I am trying to download pdf documents and use this code:
<cfheader name="Content-Disposition" value="attachment;filename=Plan.pdf">
<cfcontent type="application/pdf" file="docs/Plan.pdf" >

but it gives me 500 server error.
if I remove the "file" attribute from <cfcontent I will get the download box but no file is downloaded.
servers are unix solaris 10 , coldfusion 7 , apache 2.0

Please help.
 
no it does not since the Plan.pdf is inside /docs folder
i even copy the document to the same folder as page is calling and the code:

<cfcontent type="application/pdf" file="Plan.pdf" >

still no luck and same error.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top