Using CF 7 and had written some code to open files that were uploads.  Txt,
Doc, PDF etc.  This all had been working, only difference is we moved code
onto new servers when we moved hosting.

The process was.

Display Page will all documents.
Click on link to display document
This would open a new windows and display the doc.

That window would run this and open the file, maybe over kill on header
stuff I know, I have added and removed stuff with no success.


<cfheader name="Content-Length" value="#documentSelect.filesize#">
<cfheader name="Content-Type" value="#documentSelect.mimeType#">
<cfheader name="Content-Location"
value="#URLEncodedFormat(documentSelect.savedName)#"> 

<cfheader name="Content-Disposition" value="inline;
filename=#documentSelect.name#.#documentSelect.fileType#">

<cfheader name="Expires" value="#Now()#"> 

<cfcontent type="#documentSelect.mimeType#"
file="#destinationFolder##documentSelect.savedName#">

Now the window flashes open for PDF's and then closes and prompts to
download the PDF.

Any thoughts?



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232254
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to