Hi Claude

No classroom.cfm is the file that serves up the handouts.

person clicks on a link: classroom.cfm?handout=session1.pdf

classroom.cfm has 
<cfheader name="Content-disposition" value="inline;filename=#handout#" />
<cfcontent  type="application/pdf"  file="#handoutfile#" deleteFile = "no" />

handoutfile is the full path and file name 

This displays the file fine in the browser, but attempts to save it using the 
browser pdf save function will try to save it as classroom.pdf

Interesting I just discovered that if I use the browsers save file it is saving 
it as 
session1.pdf

My issue is with the browser's pdf reader save function. This is true for 
firefox 
and safari

Rob


On 30 Dec 2012 at 8:55, =?ISO-8859-1?Q?Claude_Schn=E9 wrote:

> 
>  >><cfheader name="Content-disposition"
> value="inline;filename=#handout#" />
> <cfcontent  type="application/pdf"  file="#handoutfile#" deleteFile
> = "no" />
> 
>  >>This works great for viewing the file, but the name of the file
> is "classroom.pdf"
> since there is multiple handouts the user is likely to overwrite
> previously saved
> files
> 
> Well, if the file name is "classroom.pdf", it must be because you
> have handout set to "classroom.pdf", no?
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353720
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to