Re: cfcontent and save as

2011-03-01 Thread Richard White

 well it works perfectly in all browsers except safari (windows)... 

after tearing all my hair out, realized the pop up block in safari was on! :\
 


~|
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:342649
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcontent and save as

2011-02-26 Thread Richard White

thanks for all the help, now works perfect!

well it works perfectly in all browsers except safari (windows)... have 
searched the internet and found this is a common problem although even when i 
add the suggestions it still doesn't work, can anyone spot what is wrong with 
this code:

cfheader name=Content-Disposition value=Attachment;FILENAME=#fileName# 
charset=utf-8

cfcontent type = application/vnd.ms-excel; charset=utf-8 file=#fullPath# 
deleteFile = yes

many thanks 

~|
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:342597
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcontent and save as

2011-02-26 Thread Michael Grant

I thought I could remember something quirky. My memory sucks. If only I
could remember if there's a resolution.
Good luck.

On Sat, Feb 26, 2011 at 6:35 AM, Richard White rich...@j7is.co.uk wrote:


 thanks for all the help, now works perfect!

 well it works perfectly in all browsers except safari (windows)... have
 searched the internet and found this is a common problem although even when
 i add the suggestions it still doesn't work, can anyone spot what is wrong
 with this code:

 cfheader name=Content-Disposition
 value=Attachment;FILENAME=#fileName# charset=utf-8

 cfcontent type = application/vnd.ms-excel; charset=utf-8
 file=#fullPath# deleteFile = yes

 many thanks

 

~|
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:342598
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcontent and save as

2011-02-25 Thread Richard White

thanks for all the help, now works perfect!

 Hi,
 
 for security we store xls documents in a non-web root folder. We then 
 use a cfcontent tag to serve the file to the user. 
 
 the problem is when the user clicks the link they are displayed a 
 download dialogue and all is fine if they click 'open with ms excel', 
 but if they click 'save as' it saves the .cfm file and not the xls 
 file
 
 is there a way to save the xls file if the user clicks 'save as'
 
 thanks 


~|
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:342588
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfcontent and save as

2011-02-25 Thread UXB

To force a download no matter the type:

cfheader name=Content-Type value=application/unknown / 
cfheader name=Content-Disposition value=attachment; filename=#filename#
/



Dennis Powers
UXB Internet - A website Design and Hosting Company
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com

-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Thursday, February 24, 2011 1:22 PM
To: cf-talk
Subject: cfcontent and save as


Hi,

for security we store xls documents in a non-web root folder. We then use a
cfcontent tag to serve the file to the user. 

the problem is when the user clicks the link they are displayed a download
dialogue and all is fine if they click 'open with ms excel', but if they
click 'save as' it saves the .cfm file and not the xls file

is there a way to save the xls file if the user clicks 'save as'

thanks 



~|
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:342595
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcontent and save as

2011-02-25 Thread Wil Genovese

Also, read this blog post of mine for more details on serving files up for 
download.  

http://www.trunkful.com/index.cfm/2010/8/4/Serving-File-Downloads-with-ColdFusion



Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Feb 25, 2011, at 4:09 PM, UXB wrote:

 
 To force a download no matter the type:
 
 cfheader name=Content-Type value=application/unknown / 
 cfheader name=Content-Disposition value=attachment; filename=#filename#
 /
 
 
 
 Dennis Powers
 UXB Internet - A website Design and Hosting Company
 P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
 W: http://www.uxbinternet.com
 W: http://www.ctbusinesslist.com
 
 -Original Message-
 From: Richard White [mailto:rich...@j7is.co.uk] 
 Sent: Thursday, February 24, 2011 1:22 PM
 To: cf-talk
 Subject: cfcontent and save as
 
 
 Hi,
 
 for security we store xls documents in a non-web root folder. We then use a
 cfcontent tag to serve the file to the user. 
 
 the problem is when the user clicks the link they are displayed a download
 dialogue and all is fine if they click 'open with ms excel', but if they
 click 'save as' it saves the .cfm file and not the xls file
 
 is there a way to save the xls file if the user clicks 'save as'
 
 thanks 
 
 
 
 

~|
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:342596
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfcontent and save as

2011-02-24 Thread Andrew Scott

You need to use the cfheader tag and tell it the filename.


Regards,
Andrew Scott
http://www.andyscott.id.au/



 -Original Message-
 From: Richard White [mailto:rich...@j7is.co.uk]
 Sent: Friday, 25 February 2011 5:22 AM
 To: cf-talk
 Subject: cfcontent and save as
 
 
 Hi,
 
 for security we store xls documents in a non-web root folder. We then use
a
 cfcontent tag to serve the file to the user.
 
 the problem is when the user clicks the link they are displayed a download
 dialogue and all is fine if they click 'open with ms excel', but if they
click 'save
 as' it saves the .cfm file and not the xls file
 
 is there a way to save the xls file if the user clicks 'save as'
 
 thanks
 
 ~~
 ~~~|
 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:342583
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
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:342584
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcontent and save as

2011-02-24 Thread Michael Grant

This question comes up pretty often. I don't remember if there's actually a
fix or not. I remember people having problems despite using cfheader to
define content-type and disposition.
Perhaps some of these will help:

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:8207

On Thu, Feb 24, 2011 at 1:22 PM, Richard White rich...@j7is.co.uk wrote:


 Hi,

 for security we store xls documents in a non-web root folder. We then use a
 cfcontent tag to serve the file to the user.

 the problem is when the user clicks the link they are displayed a download
 dialogue and all is fine if they click 'open with ms excel', but if they
 click 'save as' it saves the .cfm file and not the xls file

 is there a way to save the xls file if the user clicks 'save as'

 thanks

 

~|
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:342585
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfcontent and save as

2011-02-24 Thread Andrew Scott

As long as you use attachment as well as filename in the cfcontent you will
never have a problem.

So it should something like this

cfheader name=Content-Disposition value=Attachment;FILENAME=#FileName#


Regards,
Andrew Scott
http://www.andyscott.id.au/



 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Friday, 25 February 2011 5:46 AM
 To: cf-talk
 Subject: Re: cfcontent and save as
 
 
 This question comes up pretty often. I don't remember if there's actually
a fix
 or not. I remember people having problems despite using cfheader to define
 content-type and disposition.
 Perhaps some of these will help:
 
 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528
 http://www.houseoffusion.com/groups/cf-
 talk/thread.cfm/threadid:24528
 http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:8207
 
 On Thu, Feb 24, 2011 at 1:22 PM, Richard White rich...@j7is.co.uk wrote:
 
 
  Hi,
 
  for security we store xls documents in a non-web root folder. We then
  use a cfcontent tag to serve the file to the user.
 
  the problem is when the user clicks the link they are displayed a
  download dialogue and all is fine if they click 'open with ms excel',
  but if they click 'save as' it saves the .cfm file and not the xls
  file
 
  is there a way to save the xls file if the user clicks 'save as'
 
  thanks
 
 
 
 ~~
 ~~~|
 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:342585
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
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:342586
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfcontent and save as

2011-02-24 Thread Michael Grant

Ah, these are the threads I was remembering.

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62324#339820
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62324#339820
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62327#339828
 http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339828

On Thu, Feb 24, 2011 at 1:56 PM, Andrew Scott andr...@andyscott.id.auwrote:


 As long as you use attachment as well as filename in the cfcontent you will
 never have a problem.

 So it should something like this

 cfheader name=Content-Disposition
 value=Attachment;FILENAME=#FileName#


 Regards,
 Andrew Scott
 http://www.andyscott.id.au/



  -Original Message-
  From: Michael Grant [mailto:mgr...@modus.bz]
  Sent: Friday, 25 February 2011 5:46 AM
  To: cf-talk
  Subject: Re: cfcontent and save as
 
 
  This question comes up pretty often. I don't remember if there's actually
 a fix
  or not. I remember people having problems despite using cfheader to
 define
  content-type and disposition.
  Perhaps some of these will help:
 
  http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528
  http://www.houseoffusion.com/groups/cf-
  talk/thread.cfm/threadid:24528
  http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:8207
 
  On Thu, Feb 24, 2011 at 1:22 PM, Richard White rich...@j7is.co.uk
 wrote:
 
  
   Hi,
  
   for security we store xls documents in a non-web root folder. We then
   use a cfcontent tag to serve the file to the user.
  
   the problem is when the user clicks the link they are displayed a
   download dialogue and all is fine if they click 'open with ms excel',
   but if they click 'save as' it saves the .cfm file and not the xls
   file
  
   is there a way to save the xls file if the user clicks 'save as'
  
   thanks
  
  
 
  ~~
  ~~~|
  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:342585
  Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
  Unsubscribe: http://www.houseoffusion.com/groups/cf-
  talk/unsubscribe.cfm


 

~|
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:342587
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm