cfcontent changing name of file

2012-12-29 Thread Rob Voyle
Hi Folks I have a webpage called "classroom.cfm" It serves up a series of pdf handouts using handoutFile is the absolute path & #handout# to a non web part of the server where the handouts are . Works fine except when someone wants to save the file to their computer the file is called

Re: cfcontent changing name of file

2012-12-29 Thread Russ Michaels
try this. http://www.sitepoint.com/forums/showthread.php?640127-changing-filename-of-download-in-cfcontent On Sun, Dec 30, 2012 at 1:50 AM, Rob Voyle wrote: > > Hi Folks > > I have a webpage called "classroom.cfm" > > It serves up a series of pdf handouts using > > > > > handoutFile is the a

Re: cfcontent changing name of file

2012-12-29 Thread Rob Voyle
Hi Russ creating objects is beyond my expertise and I couldn't get the sitepoint idea to work. Kept getting an object error. However my suspicion is that it wouldn't solve my problem. forces the browser to save the file not view the file. I want people to first view it and then save it if t

Re: cfcontent changing name of file

2012-12-29 Thread Dan G. Switzer, II
Rob, The following should work: -Dan On Saturday, December 29, 2012, Rob Voyle wrote: > > Hi Russ > creating objects is beyond my expertise and I couldn't get the sitepoint > idea to > work. Kept getting an object error. However my suspicion is that it > wouldn't > solve my problem. > value

Re: cfcontent changing name of file

2012-12-29 Thread Rob Voyle
Hi Dan That doesn't work It opens the pdf fine: the url in the browser says www.host.com/webinars/classroom.cfm?handout=ai-session1.pdf and if I try to save the pdf file the file name is: classroom.pdf What I would like to do is save it as: ai-session1.pdf Rob On 29 Dec 2012 at 23:45, Dan G.

Re: cfcontent changing name of file

2012-12-29 Thread Claude Schnéegans
You need two tags: one to set the file name, one to send return the document ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.h

Re: cfcontent changing name of file

2012-12-30 Thread Rob Voyle
On 30 Dec 2012 at 1:05, =?ISO-8859-1?Q?Claude_Schn=E9 wrote: Hi Claude The "attachment" option forces a download without viewing, I want the user to be able to view the document and then save it if they choose. So far there are two options that I can use in the serving page classroom.cfm: Thi

Re: cfcontent changing name of file

2012-12-30 Thread Claude Schnéegans
>> >>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? ~~

Re: cfcontent changing name of file

2012-12-30 Thread Rob Voyle
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 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 func

Re: cfcontent changing name of file

2012-12-30 Thread Claude Schnéegans
Well, I see. Then it definitely looks like a Firefox issue. Have you try with Explorer? I don't see what you can do from CF. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/14302

Re: cfcontent changing name of file

2012-12-30 Thread Rob Voyle
Hi Claude It appears on all browsers. i think the issue is in the adobe pdf reader, not picking up the file name. it seems to fall under the rubric. "Just when I thought I had idiot proofed the system they invented a more advanced idiot." My solution for now, or what I am prepared to put time