Restrict the user from editing the excel sheet exported using cfcontent tag.

2014-06-15 Thread Sathyanarayanan Ramanathan

Dear Friends,

Is there anyway we can restrict the user from editing the excel sheet
exported using cfcontent tag.


Your time  help is really appreciated.

ThanksRegards,
Sathya


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


Re: Restrict the user from editing the excel sheet exported using cfcontent tag.

2014-06-15 Thread C. Hatton Humphrey

Sathya -

I'm no expert on CFContent but you might be able to extend the concept
presented in
http://www.bennadel.com/blog/461-creating-microsoft-excel-documents-with-coldfusion-and-xml.htm
which uses a CFSaveContent to create an XML definition of a spreadsheet and
then CFContent to save the file.

Digging further, there is also CFSpreadSheet and in
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec17cba-7f87.html
there is a password parameter.which, Set a password for modifying the
sheet.

Hope this helps.

Until Later!
C. Hatton Humphrey

Every cloud does have a silver lining.  Sometimes you just have to do some
smelting to find it.


On Sun, Jun 15, 2014 at 2:42 AM, Sathyanarayanan Ramanathan 
sathya0...@gmail.com wrote:


 Dear Friends,

 Is there anyway we can restrict the user from editing the excel sheet
 exported using cfcontent tag.



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


Re: Restrict the user from editing the excel sheet exported using cfcontent tag.

2014-06-15 Thread M.A. Kruger

Keep in mind that setting a file level password is going to be the lowest form 
of security. it will be easy for even a casually determined user to crack. 

Sent from my iPhone

 On Jun 15, 2014, at 8:03 AM, C. Hatton Humphrey chumph...@gmail.com wrote:
 
 
 Sathya -
 
 I'm no expert on CFContent but you might be able to extend the concept
 presented in
 http://www.bennadel.com/blog/461-creating-microsoft-excel-documents-with-coldfusion-and-xml.htm
 which uses a CFSaveContent to create an XML definition of a spreadsheet and
 then CFContent to save the file.
 
 Digging further, there is also CFSpreadSheet and in
 http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec17cba-7f87.html
 there is a password parameter.which, Set a password for modifying the
 sheet.
 
 Hope this helps.
 
 Until Later!
 C. Hatton Humphrey
 
 Every cloud does have a silver lining.  Sometimes you just have to do some
 smelting to find it.
 
 
 On Sun, Jun 15, 2014 at 2:42 AM, Sathyanarayanan Ramanathan 
 sathya0...@gmail.com wrote:
 
 
 Dear Friends,
 
 Is there anyway we can restrict the user from editing the excel sheet
 exported using cfcontent tag.
 
 
 

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


No directory deletion after cfcontent

2013-08-23 Thread daniel kessler

I am on CF9.  I am making a temp folder and putting pdfs in it.  Then I do a 
merge.
Afterwards, I do a CFContent to view the pdf.  Then I do a cfdirectory, get a 
list of the Directories and delete any directories over an hour old.  This is 
not working.

If I comment out the cfcontent, it works fine and all is well.  Put the 
cfcontent back in and my directories are left.  Some of these directories are 
days old, so there is no active/open content in them.  To assure this, I still 
create the directories for the pdfs to merge, but I output it and view it in 
the parent directory, so deleting these directories should be simple.

If I move the directory deletion BEFORE the cfcontet tag, then it deletes them 
fine, but that's not where I need them to be.

So here's the code, but there is a directory created with a unique name (e.g. 
Z-13221-503881377293800337) before this and stuffed with pdfs.

CFCONTENT type=application/pdf file=#view_file# deletefile=yes!--- 
---
!--- delete currently used dir ---
cfdirectory action=delete directory=#output_path# recurse=yes
cfdirectory action=list name=pdf_dir_listing directory=#directory_path#
after 1 folder deletebr
cfdump var=#pdf_dir_listing#
cfloop query=pdf_dir_listing
cfset the_mod_date = ParseDateTime(datelastmodified)
cfif DateDiff('n',the_mod_date,now()) gt 60 !--- more than 1 hr old ---
cfif DirectoryExists(tmp_path)
   cfdirectory action=delete directory=#tmp_path# recurse=yes
/cfif
/cfif
/cfloop
after many folder deletebr
cfdirectory action=list name=pdf_dir_listing  
directory=#directory_path# cfdump var=#pdf_dir_listing#

The paths are fine because this works without the cfcontent. 

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


Re: No directory deletion after cfcontent

2013-08-23 Thread Carl Von Stetten

I believe cfcontent effectively issues an abort after execution (at 
least the CF10 docs say so, not sure about CF9), so any code that 
follows the cfcontent is not executed.  You might be better off 
setting up a recurring scheduled task to do your directory cleanup.

HTH,
-Carl V.

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


Re: No directory deletion after cfcontent

2013-08-23 Thread Russ Michaels

Why not just create a scheduled task to delete your old folders then you
won't have the issue

Russ Michaels
www.michaels.me.uk
cfmldeveloper.com
cflive.net
cfsearch.com
On 23 Aug 2013 23:51, daniel kessler dani...@umd.edu wrote:


 I am on CF9.  I am making a temp folder and putting pdfs in it.  Then I do
 a merge.
 Afterwards, I do a CFContent to view the pdf.  Then I do a cfdirectory,
 get a list of the Directories and delete any directories over an hour old.
  This is not working.

 If I comment out the cfcontent, it works fine and all is well.  Put the
 cfcontent back in and my directories are left.  Some of these directories
 are days old, so there is no active/open content in them.  To assure this,
 I still create the directories for the pdfs to merge, but I output it and
 view it in the parent directory, so deleting these directories should be
 simple.

 If I move the directory deletion BEFORE the cfcontet tag, then it deletes
 them fine, but that's not where I need them to be.

 So here's the code, but there is a directory created with a unique name
 (e.g. Z-13221-503881377293800337) before this and stuffed with pdfs.

 CFCONTENT type=application/pdf file=#view_file#
 deletefile=yes!--- ---
 !--- delete currently used dir ---
 cfdirectory action=delete directory=#output_path# recurse=yes
 cfdirectory action=list name=pdf_dir_listing
 directory=#directory_path#
 after 1 folder deletebr
 cfdump var=#pdf_dir_listing#
 cfloop query=pdf_dir_listing
 cfset the_mod_date = ParseDateTime(datelastmodified)
 cfif DateDiff('n',the_mod_date,now()) gt 60 !--- more than 1 hr old
 ---
 cfif DirectoryExists(tmp_path)
cfdirectory action=delete directory=#tmp_path#
 recurse=yes
 /cfif
 /cfif
 /cfloop
 after many folder deletebr
 cfdirectory action=list name=pdf_dir_listing
  directory=#directory_path# cfdump var=#pdf_dir_listing#

 The paths are fine because this works without the cfcontent.

 

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


Re: trouble with cfheader/cfcontent

2013-06-19 Thread Dave Watts

 I'm attempting to use cfheader/cfcontent to allow our users to download files 
 and programs from our site. With *.exe files it is
 copying the file name correctly but the size does not match to the original 
 file size. For example, the site has a file named WG.exe
 with a size of 1587KB, but it downloads as users/Randy/WG.exe with a size of 
 11kb. The code needs to work for all types of files.
 Here is the code:

 cfheader name=Content-Disposition value=attachment; filename=#fName# /
 cfcontent type=application/unknown

I don't see where you're actually serving the file itself:

cfcontent file=...

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


trouble with cfheader/cfcontent

2013-06-18 Thread Randy Robinson

I'm attempting to use cfheader/cfcontent to allow our users to download files 
and programs from our site. With *.exe files it is copying the file name 
correctly but the size does not match to the original file size. For example, 
the site has a file named WG.exe with a size of 1587KB, but it downloads as 
users/Randy/WG.exe with a size of 11kb. The code needs to work for all types of 
files. Here is the code:

cfheader name=Content-Disposition value=attachment; filename=#fName# /
cfcontent type=application/unknown

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


Re: trouble with cfheader/cfcontent

2013-06-18 Thread Dean Lawrence

Randy,

This is more than likely your web server restricting the downloading of
.exe files and not ColdFusion. Check with your server config.


On Tue, Jun 18, 2013 at 4:13 PM, Randy Robinson rlrobin...@sartellgroup.com
 wrote:


 I'm attempting to use cfheader/cfcontent to allow our users to download
 files and programs from our site. With *.exe files it is copying the file
 name correctly but the size does not match to the original file size. For
 example, the site has a file named WG.exe with a size of 1587KB, but it
 downloads as users/Randy/WG.exe with a size of 11kb. The code needs to work
 for all types of files. Here is the code:

 cfheader name=Content-Disposition value=attachment; filename=#fName#
 /
 cfcontent type=application/unknown

 

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


Creating DOC file with image using CFCONTENT

2013-04-04 Thread Chad Baloga

I am trying to create a word document with images.  I have all the of the HTML 
in a cfsavecontent, then I use that variable to write the document, then open 
it with cfcontent. I have done this successfully in the past but now I have a 
document with an image.  How can I get it to use an image from a img tag?  

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


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:

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

cfheader name=Content-Disposition 
value=attachment;filename=#handout#
cfcontent type = application/pdf file=#handoutFile# DELETEFILE=no /
 
This works great for forcing the download with a changed name but doesn't have 
the view option.

Seems the simplest route is to create two links. View Handout and Download 
Handout

Thanks

Rob



 
 You need two tags: one to set the file name, one to send return the
 document
 cfheader name=Content-Disposition value=attachment;
 filename=myFile.pdf
 cfcontent type = application/pdf file=#handoutFile#
 DELETEFILE=no RESET=yes



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


Re: cfcontent changing name of file

2012-12-30 Thread Claude Schnéegans

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


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 
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


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/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353722
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 into is to create a 
view 
link and a download link.

Thanks

Rob 

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

 
 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/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353723
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 

cfcontent type = application/pdf file=#handoutFile# deleteFile = no 

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 classroom.pdf 

Is there a way to change the file name to #handout#.

I have tried 
cfheader name=Content-Disposition value=filename=#handout# 
which doesn't work
cfheader name=Content-Disposition value=attachment; 
filename=#handout#
works but it forces the saving of the file i want the person to be able to read 
the 
file and then save it if they want.

Thanks
Rob


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


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 robvo...@voyle.com wrote:


 Hi Folks

 I have a webpage  called classroom.cfm

 It serves up a series of pdf handouts using

 cfcontent type = application/pdf file=#handoutFile# deleteFile = no
 

 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 classroom.pdf

 Is there a way to change the file name to #handout#.

 I have tried
 cfheader name=Content-Disposition value=filename=#handout#
 which doesn't work
 cfheader name=Content-Disposition value=attachment;
 filename=#handout#
 works but it forces the saving of the file i want the person to be able to
 read the
 file and then save it if they want.

 Thanks
 Rob


 

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


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. 
cfheader name=Content-disposition 
value=attachment;filename=#downloadFile# /
forces the browser to save the file not view the file. I want people to first 
view it 
and then save it if they want. 

Rob

 

On 30 Dec 2012 at 2:34, Russ Michaels wrote:

 
 try this.
 http://www.sitepoint.com/forums/showthread.php?640127-changing-filen
 ame-of-download-in-cfcontent
 
 



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


Re: cfcontent changing name of file

2012-12-29 Thread Dan G. Switzer, II

Rob,

The following should work:

cfheader name=Content-disposition
value=inline;filename=#downloadFile# /

-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.
 cfheader name=Content-disposition
 value=attachment;filename=#downloadFile# /
 forces the browser to save the file not view the file. I want people to
 first view it
 and then save it if they want.

 Rob



 On 30 Dec 2012 at 2:34, Russ Michaels wrote:

 
  try this.
  http://www.sitepoint.com/forums/showthread.php?640127-changing-filen
  ame-of-download-in-cfcontent
 
 



 

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


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. Switzer, II wrote:

 
 Rob,
 
 The following should work:
 
 cfheader name=Content-disposition
 value=inline;filename=#downloadFile# /
 
 -Dan



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


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
cfheader name=Content-Disposition value=attachment; filename=myFile.pdf
cfcontent type = application/pdf file=#handoutFile# DELETEFILE=no 
RESET=yes


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


CFCONTENT ClientAbortException: java.net.SocketException w/ CF10

2012-11-19 Thread Chad Baloga

We upgraded to CF10 over the weekend and now we are getting errors on large 
cfontent file downnloads.  The users say the download finishes fine for them 
and they do not see any errors.

Error Message: The cause of this output exception was that: 
ClientAbortException: java.net.SocketException: Connection reset by peer: 
socket write error.

Any ideas?


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


CFCONTENT does not reset

2012-08-06 Thread Claude Schnéegans

Hi,

I came across a problem with CFCONTENT. Even if the attribute RESET=yes is 
used, the content which was previously set by cfhtmlhead  is not reset.

Ex 1:
cfhtmlhead text = 'This is in the head section'
cfcontent type=text/html; charset=ISO-8859-1 RESET=yes
This shouldn't have the head section.
/cfcontent

Ex 2:
headThis is in the head section/head
cfcontent type=text/html; charset=ISO-8859-1 RESET=yes
This shouldn't have the head section.
/cfcontent

In Ex 1, the text This is in the head section still appears in the page.
In the ex 2 it does not.

Is this a bug, or an undocumented feature ?
Anyway, is there some way I could clear what was previously set with 
cfhtmlhead ?
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:352058
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFCONTENT does not reset

2012-08-06 Thread Dave Watts

 I came across a problem with CFCONTENT. Even if the attribute RESET=yes is 
 used, the content which was previously set by cfhtmlhead  is not reset.

 Ex 1:
 cfhtmlhead text = 'This is in the head section'
 cfcontent type=text/html; charset=ISO-8859-1 RESET=yes
 This shouldn't have the head section.
 /cfcontent

 Ex 2:
 headThis is in the head section/head
 cfcontent type=text/html; charset=ISO-8859-1 RESET=yes
 This shouldn't have the head section.
 /cfcontent

 In Ex 1, the text This is in the head section still appears in the page.
 In the ex 2 it does not.

 Is this a bug, or an undocumented feature ?
 Anyway, is there some way I could clear what was previously set with 
 cfhtmlhead ?

I believe this is the expected behavior. Once you use any
functionality that explicitly writes part of the response (CFHTMLHEAD,
CFHEADER, etc) you can't use functionality that lets you manipulate
the storage buffer (CFCONTENT, CFFLUSH).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: CFCONTENT does not reset

2012-08-06 Thread Claude Schnéegans

 Once you use any
functionality that explicitly writes part of the response (CFHTMLHEAD,
CFHEADER, etc) you can't use functionality that lets you manipulate
the storage buffer (CFCONTENT, CFFLUSH).

Not so sure about this.
I've noticed that the effect of CFHTMLHEAD is to find the HEAD.../HEAD pair 
in the output at the end of the output creation and simply insert the text 
right before the /HEAD tag.
If no HEAD tag is found, the text will be added at the beging of the output 
buffer.
You may use HEAD.../HEAD after CFHTMLHEAD, even as the last line in your 
template, and text added by CFHTMLHEAD will still be inserted inside the 
HEAD.../HEAD pair which proves that the action is performed at time the 
output buffer is sent and not at the moment CFHTMLHEAD is executed.

My understanding is that the RESET action is executed first, then the 
CFHTMLHEAD action. This last operation shoud be canceled by the RESET and it 
is not.
IMHO it is definitely a bug.

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


Re: CFCONTENT does not reset

2012-08-06 Thread Claude Schnéegans

 Once you use any
functionality that explicitly writes part of the response (CFHTMLHEAD,
CFHEADER, etc) you can't use functionality that lets you manipulate
the storage buffer (CFCONTENT, CFFLUSH).

I think it is actually the opposite:
Once you have used CFCONTENT, CFFLUSH, you cannot use any
functionality that explicitly writes part of the response (CFHTMLHEAD,
CFHEADER, etc), simply because the output buffer is already gone.

Look at the docs for CFHTMLHEAD:
If you use this tag after the cfflush tag on a page, an error is thrown.

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


File download speed disparity via CFContent

2012-03-03 Thread Dana Kowalski

I could use some brainstorming help please to sort out this issue. A disclaimer 
is I'm attempting to get our sys admins to hook up the apache sendfile into iis 
6.x, however the timeline might not help me here.

We have two racks with a CF 8.x app server, file server, db server. They all 
run on win2k3 server. We have a requirement to use secure downloads off our 
file structure, based on cascading permissions. Both pages are currently using 
CFContent to send the user the file. The app servers under equal load 
conditions, going through the same router to an OC-3, are having a large 
disparity on file transfer times. One server is transferring around 1.5MB/sec, 
the other around 35KB/sec. The interesting thing is a direct download of a file 
on the slower server pushes through at 1.3MB/sec. 

As of a couple days ago, both app servers are completely in line configuration 
wise. This made no change to the speeds (slower one was a minor version nbr 
lower on JVM). Any thoughts? I'm pulling my hair out here. Thx. 

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


RE: Difference between cfcontent and cfheader in terms its usage?

2012-02-16 Thread Bobby Hartsfield

as the names suggest, cfheader is for creating HTTP response headers and
cfcontent is for sending mime encoded content (generally that of a file).
cfcontent can set the mime content header but it's the only header it sets.

http://cfdocs.org/cfheader

http://cfdocs.org/cfcontent


.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com



-Original Message-
From: Jay Pandya [mailto:jaypandy...@gmail.com] 
Sent: Thursday, February 16, 2012 2:01 AM
To: cf-talk
Subject: Difference between cfcontent and cfheader in terms its usage?


Difference between cfcontent and cfheader in terms its usage? 



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


Difference between cfcontent and cfheader in terms its usage?

2012-02-15 Thread Jay Pandya

Difference between cfcontent and cfheader in terms its usage? 

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


Re: Difference between cfcontent and cfheader in terms its usage?

2012-02-15 Thread Justin Scott

 Difference between cfcontent and cfheader in terms its usage?

Generally, cfcontent is used to serve up a file from the server
through ColdFusion (could be a generated PDF document, tracking image,
or any other file you want to have ColdFusion serve up for you through
the code).  You can also use cfcontent to specifically set the
content-type header through the type attribute (usually in
conjunction with a file to be sent with the file attribute).  It can
also be used to reset the output buffer as long as output hasn't been
flushed back to the server yet.

The cfheader tag is used to set specific response headers or status
codes for the HTTP request.  This can be used to set the status code
and one or more response headers as needed.  It's commonly used to set
a Content-Disposition header in conjunction with the cfcontent tag
when serving up a file to give the client a hint as to what filename
it should use for the file being served.  It can be used to set a
Location header (which was common in conjunction with a 301 status
code in earlier versions of ColdFusion, or in conjunction with setting
a cookie way back before the cflocation tag was fixed in this regard).


-Justin

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


Re: jboss cfcontent variable xls file no lopnger working.

2012-02-01 Thread morchella

well this was an easy fix.

in CfAdmin there is a setting under the Advanced Settings to Enable binary
large object retrieval (BLOB). In my case, it was unchecked. On the New
server instance.
On Jan 30, 2012 7:13 PM, morchella morchella.delici...@gmail.com wrote:

 so we have our file data stored in a blob.
 upgrading from websphere cf7 to jboss. cf9

 for some reason i cant for the life of me trouble shoot correctly.
 some/most xls are no longer downloading correctly.

 if i upload a simple xls it works.
 so does an xls.
 but existing binary data from a blob field is not consistently downloading.

 pdfs are all good.

 any idea how i can debug the issue?
 thanks guys
 -p



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


jboss cfcontent variable xls file no lopnger working.

2012-01-30 Thread morchella

so we have our file data stored in a blob.
upgrading from websphere cf7 to jboss. cf9

for some reason i cant for the life of me trouble shoot correctly.
some/most xls are no longer downloading correctly.

if i upload a simple xls it works.
so does an xls.
but existing binary data from a blob field is not consistently downloading.

pdfs are all good.

any idea how i can debug the issue?
thanks guys
-p


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


cfcontent parent page issues

2011-10-19 Thread Dawn Sekel

Has anyone come across this issue (IE8-same behavior in XP and Windows 7):

- index.cfm page displays a table from a cfquery. The query is based on 
cfselect list allowing multiple entries in a cfform. Clicking submit on the 
form, correctly displays the table output below the form based on the select 
list parameters passed to the cfquery via form variable. 

- a hyperlink in the form (not a submit), target=_blank opens same index.cfm 
using saveas=excel url parameter via cfcontent to display table data to Excel 
instead of html.

- When the user clicks the hyperlink, the page opens in Excel and displays data 
correctly.  They then close the file (and window).  

- On parent page, user chooses other values in the select list, then clicks 
submit on the form.  

Result:  debugging shows all the form variables are null and table data is not 
displayed correctly.  List selections are ignored.  

As long as the hyperlink to Excel file is not selected, user chooses other 
values in the select list as many times as desired, clicks submit on the form 
and all form variables are populated -- no problems.  The only time the form 
variables become null is if the page is opened in Excel in a _blank target 
window via CFContent and then the user closes the window and tries to change 
parameters in the select list on the previous page and clicks submit.  

I'm stuck.

Dawn Sekel, TCLEOSE Webmaster
Texas Commission on Law Enforcement 
  Officer Standards and Education
6330  East Highway 290, Suite 200
Email:  dawn.se...@tcleose.state.tx.us
Website:  http://www.tcleose.state.tx.us



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


Re: Specifying Excel Data Types in CFCONTENT?

2011-08-03 Thread Feras Nabulsi

Thanks for the info, now that the project is not hold anymore, I will do this. 
I've used the POIUtility long ago, I'll check it out again. 



  so I can't develop for 9 strictly yet. 
 As an alternative, try the POIUtility.cfc. Like cfspreadsheet it 
 generates a true Excel file. IIRC it should work on MX7 too. 
 
 If you prefer to stick with pseudo-excel files (ie html) there are a 
 lot of old css tricks floating around. Do a search on 
 mso-number-format or just play around with a local Excel file. 
 Format the cells as desired and save the workbook as html to view the 
 generated css.
 
 http://stackoverflow.
com/question 
s/354476/html-to-excel-how-can-tell-excel-to-treat-columns-as-numbers
 

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


Re: Specifying Excel Data Types in CFCONTENT?

2011-06-29 Thread Feras Nabulsi

Thanks Azadi, I know there are some additional features for the recent 
versions. I am using CF9 on my Dev by still CF7 on Production, so I can't 
develop for 9 strictly yet. 

Thanks for your help

no, there isn't. cfcontent basically just tells the browser which mime 
type the content being delivered is to help the browser figure out how 
to display it.

if you are on a recent cf version, check out cfspreadsheet group of 
tags and related functions.

Azadi

On 28/06/2011 23:26 , Feras Nabulsi wrote:
 

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


Re: Specifying Excel Data Types in CFCONTENT?

2011-06-29 Thread Leigh

 so I can't develop for 9 strictly yet. 
As an alternative, try the POIUtility.cfc. Like cfspreadsheet it generates a 
true Excel file. IIRC it should work on MX7 too. 

If you prefer to stick with pseudo-excel files (ie html) there are a lot of old 
css tricks floating around. Do a search on mso-number-format or just play 
around with a local Excel file. Format the cells as desired and save the 
workbook as html to view the generated css.

http://stackoverflow.com/questions/354476/html-to-excel-how-can-tell-excel-to-treat-columns-as-numbers



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


Specifying Excel Data Types in CFCONTENT?

2011-06-28 Thread Feras Nabulsi

Hello, 

I am using CFContent to create an excel spreadsheet. The type of data is 
different, some are currency and some are integers, ...etc. Each of these 
fields once put into Excel should be specified in order to properly format the 
spreadsheet. 

Is there a way to specify a data type for each column in Excel when created 
using CFContent?

Thank you 

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


Re: Specifying Excel Data Types in CFCONTENT?

2011-06-28 Thread Azadi Saryev

no, there isn't. cfcontent basically just tells the browser which mime 
type the content being delivered is to help the browser figure out how 
to display it.

if you are on a recent cf version, check out cfspreadsheet group of 
tags and related functions.

Azadi

On 28/06/2011 23:26 , Feras Nabulsi wrote:
 Hello,

 I am using CFContent to create an excel spreadsheet. The type of data is 
 different, some are currency and some are integers, ...etc. Each of these 
 fields once put into Excel should be specified in order to properly format 
 the spreadsheet.

 Is there a way to specify a data type for each column in Excel when created 
 using CFContent?

 Thank you

 

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


CFCONTENT in the background?

2011-06-16 Thread Terry Troxel

How can I pass content to Cfdocument and have it create and save a Pdf in
the background without opening the Pdf?
I then want to use Cfpdf to append this Pdf to an existing Pdf.

I sure hope this is possible.

Terry




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


Re: CFCONTENT in the background?

2011-06-16 Thread Peter Boughton

Use cfdocument not cfcontent.

Documentation at:
http://cfquickdocs.com/cf9/#cfdocument 

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


Re: CFCONTENT in the background?

2011-06-16 Thread Peter Boughton

Ah wait, sorry, didn't read the message properly.

The answer is to use filename attribute of cfdocument - this saves the file on 
disk, and doesn't send it to the browser. 

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


Re: cfcontent to serve PDF files hanging

2011-05-10 Thread Stephen Hardesty

Jason,
I am experiencing a similar problem. Did you ever find out exactly what was 
causing yours?

thanks,
Stephen 

 Thank you for the ideas.  We are going to change the mime/type and 
 also add some I/O logging to see if we can find a correlation there.  
 Should we find the issue I will certainly post back.
 
 Thanks for the time!
 
 Jason
 
 ON the other hand... I would expect a mime/type problem to result in 
 an
 error on the browser - not a hanging request, unless of the course 
 the
 hanging is the browsers cycling through choices to figure out how 
 to
 display the file.
 
 How may files are in the directory in question? Do you perhaps have 
 an I/O
 problem?
 
 Mark A. Kruger, MCSE, CFG
 (402) 408-3733 ext 105
 Skype: markakruger
 www.cfwebtools.com
 www.coldfusionmuse.com
 www.necfug.com
 
 
 
 Good call I think Jake...
 
 
 
 
 The only think I could think of is use application/pdf for the 
 Content-Type
 (that is technically the correct mime type).
 
 -Jake
 
 On Tue, Aug 31, 2010 at 10:33 AM, Jas 


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


Attribute validation error for tag cfcontent

2011-04-12 Thread Paulo Roberto

Hello, I have a system by which countless times intermittently, the following 
error occurs only with the browser refresh (F5), restores.
I wonder what can be wrong for this problem from occurring

Error:

Attribute validation error for tag cfcontent
coldfusion.runtime.Array is not a supported variable type. The variable is 
expected to contain binary data.

I use the CF8 on my systems and database SQL Server 2005 

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


Re: Attribute validation error for tag cfcontent

2011-04-12 Thread Russ Michaels

I think we will need to see some code to help you with this.


On Tue, Apr 12, 2011 at 8:57 PM, Paulo Roberto so.messen...@hotmail.comwrote:


 Hello, I have a system by which countless times intermittently, the
 following error occurs only with the browser refresh (F5), restores.
 I wonder what can be wrong for this problem from occurring

 Error:

 Attribute validation error for tag cfcontent
 coldfusion.runtime.Array is not a supported variable type. The variable is
 expected to contain binary data.

 I use the CF8 on my systems and database SQL Server 2005

 

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


CFContent and IE open/save

2011-03-16 Thread Brent Nicholas

I'm wondering if anyone else has seen this issue.

Use the following code to get files from the server for end users

GetFile.cfm

cfsilent
cfset mimeType = getPageContext().getServletContext().getMimeType(folder  
filename)
cfheader name=Content-Disposition value=Attachment; filename=#filename#
cfheader name=Expires value=#Now()#
cfheader name=Content-Length value=#fileInfo.size#
cfcontent type=#mimeType# file=#folder##filename# deletefile=No

It works fine however, I do not see the 'Always ask for this type of file' 
check box, it's missing. The type of file is noted as is the size in the dialog 
box. These files come from out side the web root, in an unshared folder with 
permissions to 'read' for 'Everyone', though I don't grant direct access in 
anyway to everyone.

However if I do a direct link to a file in a folder in the web root or virtual 
dir on the web server, the 'Always ask for this type of file' check box is 
present.

Ever seen this? Know what it means? I need it to be consistent everywhere so 
the users of the intranet can uncheck the box. Header info I'm missing?

Environment:
Server 2008 R2-64bit / IIS7.5
CF9
IE 7.0.5

Thanks for your thoughts,
Brent 

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


Re: same content different result CFFile vs CFContent

2011-03-15 Thread Mack

First, make sure that cfsavecontent doesn't introduce any spaces:
cfsavecontent variable=strTextcfoutput#myFile#/cfoutput/cfsavecontent

Second, I would include the file name in quotes in the
Content-Disposition header: cfheader name=Content-Disposition
value='attachment;
filename=#userInfo.lName#-#userInfo.fName#-#userInfo..UserID#-FI.txt'

Third, just output the variable in the cfcontent tag, there's no need
to pass through base64

-- 
Mack

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


same content different result CFFile vs CFContent

2011-03-14 Thread Dawn Sekel

I am converting some code that originally used CFFILE to write the contents of 
a variable to a file on the server and then attached it to an email and 
emailed.  For security reasons, we have switched to https:// and are providing 
a link for an authenticated user that takes the contents of the variable and 
generates an inline file for the user to download.  The new version however, 
contains a single ASCII character 32 (space) at the end – while the older 
version did not.  Would anyone be able to compare the to versions of my code 
and see if they can identify why the space is being added?  It is the very last 
character of the file.  Thanks in advance for any advice.  Dawn

The original code was:
!--- Create File ---
cffile action=write addnewline=no 
file=#GetDirectoryFromPath(ExpandPath(*.*))##userInfo.LName#-#userInfo.FName#-#userInfo.UserID#-FI.txt
 output=#myFile#
The new code is
!--- Create File ---
cfsavecontent variable=strText
cfoutput#myFile#/cfoutput
/cfsavecontent
 !--- Set the header info to force that file attachment. ---
cfheader
name=Content-Disposition
value=attachment; 
filename=#userInfo.lName#-#userInfo.fName#-#userInfo..UserID#-FI.txt
/
 !---
Stream the text. To do so, we have to convert it to
Base64 first, then convert that to binary.
---
cfcontent
type=text/plain
reset=true
variable=#ToBinary(ToBase64(strText))# 
/


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


Re: CFContent failing on large files since moving to ColdFusion 9

2011-03-10 Thread Chris Tsongas

This is a known bug, please log in at the Adobe site and vote for getting it 
fixed:

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83425
 

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


Re: CFContent failing on large files since moving to ColdFusion 9

2011-03-10 Thread Chris Tsongas

This is a known bug, please log in at the Adobe site and vote for it:

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83425
 

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


Re: Is there a way to replace the default HTTP header info with cfcontent?

2011-03-02 Thread steven wolff

  Thanks for your suggestion.  I'm sure your solution would have 
 worked 
  but I started messing with getPageContext() and was able to use that 
 
  to overwrite the existing headers. 
  
  I found that by doing the following after cfcontent it corrected 
 my 
  problem.
  cfset getPageContext().getResponse().setHeader(Cache-control,
  must-revalidate, post-check=0, pre-check=0)
  cfset getPageContext().getResponse().setHeader(Pragma,public)
  
  Thanks,
  Asaf 
 
 Hi Asaf.  Did you ever get this resolved?  I am trying to download 
 files to a user's browser via SSL.  I too am having no problems in 
 Firefox or Safari, but in IE 8 I just get the actual text of the 
 document streamed to the browser instead of downloaded.  Here's the 
 code I'm using:
 
 cfheader name=Content-Disposition value=attachment; filename=test.
 doc
 cfcontent type=application/unknown file=c:\sites\test.doc
 
 I've tried using inline instead of attachment, and being more specific 
 with the content type (i.e. application/msword) but nothing I'm doing 
 is helping this work in Internet Explorer.
 
 If someone has any idea, I'd really appreciate it.
 
 Thanks,
 - Andrew. 
Thanks, this really saved me.


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


Re: Is there a way to replace the default HTTP header info with cfcontent?

2011-03-02 Thread steven wolff

  Thanks for your suggestion.  I'm sure your solution would have 
 worked 
  but I started messing with getPageContext() and was able to use that 
 
  to overwrite the existing headers. 
  
  I found that by doing the following after cfcontent it corrected 
 my 
  problem.
  cfset getPageContext().getResponse().setHeader(Cache-control,
  must-revalidate, post-check=0, pre-check=0)
  cfset getPageContext().getResponse().setHeader(Pragma,public)
  
  Thanks,
  Asaf 
 Thanks, this really saved me. I've been working of this issue for 4 days. 
 cfset..., is the only thing that worked. steven
 Hi Asaf.  Did you ever get this resolved?  I am trying to download 
 files to a user's browser via SSL.  I too am having no problems in 
 Firefox or Safari, but in IE 8 I just get the actual text of the 
 document streamed to the browser instead of downloaded.  Here's the 
 code I'm using:
 
 cfheader name=Content-Disposition value=attachment; filename=test.
 doc
 cfcontent type=application/unknown file=c:\sites\test.doc
 
 I've tried using inline instead of attachment, and being more specific 
 with the content type (i.e. application/msword) but nothing I'm doing 
 is helping this work in Internet Explorer.
 
 If someone has any idea, I'd really appreciate it.
 
 Thanks,
 - Andrew. 


~|
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:342705
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-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


cfcontent and save as

2011-02-24 Thread Richard White

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


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


CFcontent puts \n at top of file -- solution?

2011-01-18 Thread Dawn Sekel

I have a web application that creates writes text string of data to be used by 
a VB application and streams it to a file to be saved on the end user's 
computer.  

I am generating a text file from an online database that needs to be opened by 
the VB application with a CHR(10) character delimeter between fields.  The end 
user clicks download in my application and then saves the file to their 
computer to use with the VB application (3rd party written).  Here is an 
example of my code.  When opening the text file locally, it alway's has a new 
line character at the top of the file which chokes the VB program.  Any 
suggestions on an alternate way of doing this?  Even hardcoding the line this 
is a test in the cfsavecontent statement causes the /n character to be 
inserted at the top of the file. In the real application the text string is 
#fname#  CHR(10)  #lname# etc. 
Thanks, in advance - Dawn

!---
Store the text you want to stream. ---

cfsavecontent variable=strText
This is a test.
/cfsavecontent
 

!--- Set the header info to force that file attachment. ---
cfheader
name=Content-Disposition
value=attachment; filename=test.txt
/
 

!---
Stream the text. To do so, we have to convert it to
Base64 first, then convert that to binary.
---
cfcontent
type=text/plain
reset=true
variable=#ToBinary(ToBase64(strText))#
/ 

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


Re: CFcontent puts \n at top of file -- solution?

2011-01-18 Thread Dave Watts

 I am generating a text file from an online database that needs to be opened 
 by the VB application with a CHR(10) character delimeter between
 fields.  The end user clicks download in my application and then saves the 
 file to their computer to use with the VB application (3rd party
 written).  Here is an example of my code.  When opening the text file 
 locally, it alway's has a new line character at the top of the file which
 chokes the VB program.  Any suggestions on an alternate way of doing this?  
 Even hardcoding the line this is a test in the cfsavecontent
 statement causes the /n character to be inserted at the top of the file. In 
 the real application the text string is #fname#  CHR(10)  #lname#
 etc.

 !---
 Store the text you want to stream. ---

 cfsavecontent variable=strText
 This is a test.
 /cfsavecontent

You have a newline at the beginning and end of your CFSAVECONTENT, I
suspect. Try rewriting it as a single line:

cfsavecontent ...This is a test/cfsavecontent

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or 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:341013
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFcontent puts \n at top of file -- solution?

2011-01-18 Thread Matt Quackenbush

Either of these should work for you...

cfsavecontent variable=strTextStart text here.
/cfsavecontent

OR

cfcontent
type=text/plain
reset=true
variable=#ToBinary(ToBase64(trim(strText)))# /


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


Alternative to CFCONTENT

2010-10-29 Thread Chad Baloga

We are serving files from a file server to users using cfcontent/cfheader.  
When we upgraded to CF9, we started getting the java heap space errors when 
users would try to download files larger than 250mb.  We have the min and max 
heap space settings on 1024mb.  Are there any other alternatives that we could 
use? 

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


Re: Alternative to CFCONTENT

2010-10-29 Thread Russ Michaels

The reason most people use cfcontent like this is to secure files from
public access. The alternative is just to use authenticated access using.
Htaccess, this means users must login to access files.

Russ

On 29 Oct 2010 17:45, Chad Baloga cbal...@gmail.com wrote:


We are serving files from a file server to users using cfcontent/cfheader.
 When we upgraded to CF9, we started getting the java heap space errors when
users would try to download files larger than 250mb.  We have the min and
max heap space settings on 1024mb.  Are there any other alternatives that we
could use?



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


Re: Alternative to CFCONTENT

2010-10-29 Thread Mark Mandel

Try mod xsendfile if you are on apache

http://tn123.ath.cx/mod_xsendfile/

Mark

Sent from my mobile device
On 30 Oct 2010 03:45, Chad Baloga cbal...@gmail.com wrote:


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


Re: jQuery and cfcontent

2010-10-13 Thread enigment

+1 for Dan's approach.

Dave

On Tue, Oct 12, 2010 at 10:12 PM, Dan G. Switzer, II
dswit...@pengoworks.com wrote:

 On Tuesday, October 12, 2010, Dave Watts dwa...@figleaf.com wrote:

 You can't prompt the user to download a file if you're invoking the
 URL with standard jQuery AJAX calls. You have to basically just fetch
 the URL into a new or blank window.

 I'd recommend posting to an iframe. You can even build the iframe
 dynamically if you want, it doesn't have to be visible on the page.
 I've used this technique in the past with great success.

 -Dan

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


jQuery and cfcontent

2010-10-12 Thread Victor Moore

Hi,

I have a page with a button on it. When the button is clicked a jQuery
script runs a cfc , which basically cfoutputs the query in a table,
puts it a variables and returns it
I need to download the returned table in excel.
Unfortunately it doesn't work and the table is displyed on the page.

I have tried to include :
cfheader name=Content-Disposition value=inline;
filename=fileName.xlscfcontent type=application/msexcel
in the savecontent variable returned and append it to the returned
variable in jQuery with no luck.

If I run the page as stand alone it works fine and it display the save
as or open dialog box.

Any idea how can I do this using jQuery?

Thanks
Victor

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


Re: jQuery and cfcontent

2010-10-12 Thread Michael Grant

Try this, of course swapping out the variable value to whatever var name
holds you xls content:

cfheader name=Content-disposition value=attachment;
filename=fileName.xls /
cfcontent type=application/unknown variable=your-XLS-content-var /




On Tue, Oct 12, 2010 at 11:49 AM, Victor Moore victor.mo...@gmail.comwrote:


 Hi,

 I have a page with a button on it. When the button is clicked a jQuery
 script runs a cfc , which basically cfoutputs the query in a table,
 puts it a variables and returns it
 I need to download the returned table in excel.
 Unfortunately it doesn't work and the table is displyed on the page.

 I have tried to include :
 cfheader name=Content-Disposition value=inline;
 filename=fileName.xlscfcontent type=application/msexcel
 in the savecontent variable returned and append it to the returned
 variable in jQuery with no luck.

 If I run the page as stand alone it works fine and it display the save
 as or open dialog box.

 Any idea how can I do this using jQuery?

 Thanks
 Victor

 

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


Re: jQuery and cfcontent

2010-10-12 Thread Michael Grant

P.S. I use application/unknown to force it as a download.

On Tue, Oct 12, 2010 at 1:03 PM, Michael Grant mgr...@modus.bz wrote:

 Try this, of course swapping out the variable value to whatever var name
 holds you xls content:

 cfheader name=Content-disposition value=attachment;
 filename=fileName.xls /
 cfcontent type=application/unknown variable=your-XLS-content-var /




 On Tue, Oct 12, 2010 at 11:49 AM, Victor Moore victor.mo...@gmail.comwrote:


 Hi,

 I have a page with a button on it. When the button is clicked a jQuery
 script runs a cfc , which basically cfoutputs the query in a table,
 puts it a variables and returns it
 I need to download the returned table in excel.
 Unfortunately it doesn't work and the table is displyed on the page.

 I have tried to include :
 cfheader name=Content-Disposition value=inline;
 filename=fileName.xlscfcontent type=application/msexcel
 in the savecontent variable returned and append it to the returned
 variable in jQuery with no luck.

 If I run the page as stand alone it works fine and it display the save
 as or open dialog box.

 Any idea how can I do this using jQuery?

 Thanks
 Victor

 

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


Re: jQuery and cfcontent

2010-10-12 Thread Tony Bentley

I usually locate to another page which holds the cfheader code. What ends up
happening when you locate to another page is you are never redirected and
the page prompts to download. Doing it in jquery is unnecessary unless you
want to use a wait icon to ensure the processing is finished before
locating, which then all you need is a
document.location.href=page-to-cfheader.cfm;


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


Re: jQuery and cfcontent

2010-10-12 Thread Victor Moore

I think I may end up using this approach, to open a new window.

@Michael the variable is expected to contain binary data. In my case
is just a string.

Thank you guys
Much appreciated

Victor

On Tue, Oct 12, 2010 at 1:11 PM, Tony Bentley
cascadefreehee...@gmail.com wrote:

 I usually locate to another page which holds the cfheader code. What ends up
 happening when you locate to another page is you are never redirected and
 the page prompts to download. Doing it in jquery is unnecessary unless you
 want to use a wait icon to ensure the processing is finished before
 locating, which then all you need is a
 document.location.href=page-to-cfheader.cfm;


 

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


Re: jQuery and cfcontent

2010-10-12 Thread Michael Grant

Here's a working example:

!--- Read the file ---
cffile action = read  file = /seedRequests.xls  variable = xlsXML

!--- Set content-dispostion ---
cfheader name=Content-disposition value=attachment;
filename=seedRequests.xls /

!--- feed the file to the browser ---
cfcontent type=application/unknown variable=#ToBinary( ToBase64(
xlsXML.Trim().ReplaceAll( '\s+', '' ).ReplaceAll( '\s+', '' ) ) )# /



On Tue, Oct 12, 2010 at 1:36 PM, Victor Moore victor.mo...@gmail.comwrote:


 I think I may end up using this approach, to open a new window.

 @Michael the variable is expected to contain binary data. In my case
 is just a string.

 Thank you guys
 Much appreciated

 Victor

 On Tue, Oct 12, 2010 at 1:11 PM, Tony Bentley
 cascadefreehee...@gmail.com wrote:
 
  I usually locate to another page which holds the cfheader code. What ends
 up
  happening when you locate to another page is you are never redirected and
  the page prompts to download. Doing it in jquery is unnecessary unless
 you
  want to use a wait icon to ensure the processing is finished before
  locating, which then all you need is a
  document.location.href=page-to-cfheader.cfm;
 
 
 

 

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


Re: jQuery and cfcontent

2010-10-12 Thread Victor Moore

Hi Michael,

Thanks for the example. My case it's a little bit different. I get the
info from a db call and want to allow the user to download it as an
excel file. And it works fine in stand alone mode but when invoked
through jQuery the cfcontent is ignored.
So I had to manually open another window which will trigger the download.

Thanks
Victor

On Tue, Oct 12, 2010 at 1:47 PM, Michael Grant mgr...@modus.bz wrote:

 Here's a working example:

 !--- Read the file ---
 cffile action = read  file = /seedRequests.xls  variable = xlsXML

 !--- Set content-dispostion ---
 cfheader name=Content-disposition value=attachment;
 filename=seedRequests.xls /

 !--- feed the file to the browser ---
 cfcontent type=application/unknown variable=#ToBinary( ToBase64(
 xlsXML.Trim().ReplaceAll( '\s+', '' ).ReplaceAll( '\s+', '' ) ) )# /

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


Re: jQuery and cfcontent

2010-10-12 Thread Michael Grant

Ah, totally missed the jquery invocation part. Gotcha.


On Tue, Oct 12, 2010 at 8:40 PM, Victor Moore victor.mo...@gmail.comwrote:


 Hi Michael,

 Thanks for the example. My case it's a little bit different. I get the
 info from a db call and want to allow the user to download it as an
 excel file. And it works fine in stand alone mode but when invoked
 through jQuery the cfcontent is ignored.
 So I had to manually open another window which will trigger the download.

 Thanks
 Victor

 On Tue, Oct 12, 2010 at 1:47 PM, Michael Grant mgr...@modus.bz wrote:
 
  Here's a working example:
 
  !--- Read the file ---
  cffile action = read  file = /seedRequests.xls  variable = xlsXML
 
  !--- Set content-dispostion ---
  cfheader name=Content-disposition value=attachment;
  filename=seedRequests.xls /
 
  !--- feed the file to the browser ---
  cfcontent type=application/unknown variable=#ToBinary( ToBase64(
  xlsXML.Trim().ReplaceAll( '\s+', '' ).ReplaceAll( '\s+', '' ) ) )#
 /

 

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


Re: jQuery and cfcontent

2010-10-12 Thread Dave Watts

 Thanks for the example. My case it's a little bit different. I get the
 info from a db call and want to allow the user to download it as an
 excel file. And it works fine in stand alone mode but when invoked
 through jQuery the cfcontent is ignored.
 So I had to manually open another window which will trigger the download.

You can't prompt the user to download a file if you're invoking the
URL with standard jQuery AJAX calls. You have to basically just fetch
the URL into a new or blank window.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: jQuery and cfcontent

2010-10-12 Thread Dan G. Switzer, II

On Tuesday, October 12, 2010, Dave Watts dwa...@figleaf.com wrote:

 You can't prompt the user to download a file if you're invoking the
 URL with standard jQuery AJAX calls. You have to basically just fetch
 the URL into a new or blank window.

I'd recommend posting to an iframe. You can even build the iframe
dynamically if you want, it doesn't have to be visible on the page.
I've used this technique in the past with great success.

-Dan

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


Re: cfcontent to serve PDF files hanging

2010-09-01 Thread Jason Fill

Thank you for the ideas.  We are going to change the mime/type and also add 
some I/O logging to see if we can find a correlation there.  Should we find the 
issue I will certainly post back.

Thanks for the time!

Jason

ON the other hand... I would expect a mime/type problem to result in an
error on the browser - not a hanging request, unless of the course the
hanging is the browsers cycling through choices to figure out how to
display the file.

How may files are in the directory in question? Do you perhaps have an I/O
problem?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



Good call I think Jake...




The only think I could think of is use application/pdf for the Content-Type
(that is technically the correct mime type).

-Jake

On Tue, Aug 31, 2010 at 10:33 AM, Jas 

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


cfcontent to serve PDF files hanging

2010-08-31 Thread Jason Fill

Our application uses cfcontent to serve back some PDF files and several times 
per day, the request for a pdf will just hang, like 300,000 + milliseconds to 
bring back a PDF that is already created.

The code we are using is quite simple and each users file is fully generated 
before this call is made.  

cfcontent reset=true /
cfheader name=Content-Type value=pdf
cfheader name=Content-Disposition value=#type)#; 
filename=#userid#_file.pdf

Has anyone ran into this before or have any ideas what might be going on?

Thanks

Jason 

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


Re: cfcontent to serve PDF files hanging

2010-08-31 Thread Jake Churchill

The only think I could think of is use application/pdf for the Content-Type
(that is technically the correct mime type).

-Jake

On Tue, Aug 31, 2010 at 10:33 AM, Jason Fill jasonf...@gmail.com wrote:


 Our application uses cfcontent to serve back some PDF files and several
 times per day, the request for a pdf will just hang, like 300,000 +
 milliseconds to bring back a PDF that is already created.

 The code we are using is quite simple and each users file is fully
 generated before this call is made.

 cfcontent reset=true /
 cfheader name=Content-Type value=pdf
 cfheader name=Content-Disposition value=#type)#;
 filename=#userid#_file.pdf

 Has anyone ran into this before or have any ideas what might be going on?

 Thanks

 Jason

 

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


RE: cfcontent to serve PDF files hanging

2010-08-31 Thread Mark A. Kruger

Good call I think Jake...




-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com] 
Sent: Tuesday, August 31, 2010 11:02 AM
To: cf-talk
Subject: Re: cfcontent to serve PDF files hanging


The only think I could think of is use application/pdf for the Content-Type
(that is technically the correct mime type).

-Jake

On Tue, Aug 31, 2010 at 10:33 AM, Jason Fill jasonf...@gmail.com wrote:


 Our application uses cfcontent to serve back some PDF files and several
 times per day, the request for a pdf will just hang, like 300,000 +
 milliseconds to bring back a PDF that is already created.

 The code we are using is quite simple and each users file is fully
 generated before this call is made.

 cfcontent reset=true /
 cfheader name=Content-Type value=pdf
 cfheader name=Content-Disposition value=#type)#;
 filename=#userid#_file.pdf

 Has anyone ran into this before or have any ideas what might be going on?

 Thanks

 Jason

 



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


RE: cfcontent to serve PDF files hanging

2010-08-31 Thread Mark A. Kruger

ON the other hand... I would expect a mime/type problem to result in an
error on the browser - not a hanging request, unless of the course the
hanging is the browsers cycling through choices to figure out how to
display the file.

How may files are in the directory in question? Do you perhaps have an I/O
problem?

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Tuesday, August 31, 2010 11:13 AM
To: cf-talk
Subject: RE: cfcontent to serve PDF files hanging


Good call I think Jake...




-Original Message-
From: Jake Churchill [mailto:reyna...@gmail.com] 
Sent: Tuesday, August 31, 2010 11:02 AM
To: cf-talk
Subject: Re: cfcontent to serve PDF files hanging


The only think I could think of is use application/pdf for the Content-Type
(that is technically the correct mime type).

-Jake

On Tue, Aug 31, 2010 at 10:33 AM, Jason Fill jasonf...@gmail.com wrote:


 Our application uses cfcontent to serve back some PDF files and several
 times per day, the request for a pdf will just hang, like 300,000 +
 milliseconds to bring back a PDF that is already created.

 The code we are using is quite simple and each users file is fully
 generated before this call is made.

 cfcontent reset=true /
 cfheader name=Content-Type value=pdf
 cfheader name=Content-Disposition value=#type)#;
 filename=#userid#_file.pdf

 Has anyone ran into this before or have any ideas what might be going on?

 Thanks

 Jason

 





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


Style sheets with cfcontent

2010-08-26 Thread fun and learning

Hi All -

I am trying to export some data to excel, and the CSS styles do not seem to be 
working. It works fine when I use inline style attribute, but when I use class 
attributes and link to the external stylesheet, it does not seem to be working. 
I am using MS Office 2003. Did anyone face similar kind of problem?

Thanks 

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


Re: Style sheets with cfcontent

2010-08-26 Thread Carl Von Stetten

I've had the same problem in the past.  Instead of using a link to load the 
stylesheet, try this in the head section of your page:

head

style
cfinclude template=/path-to-your-css/your-css-file.css
/style

This will embed the external stylesheet into your page.

HTH,
Carl

 Hi All -
 
 I am trying to export some data to excel, and the CSS styles do not 
 seem to be working. It works fine when I use inline style attribute, 
 but when I use class attributes and link to the external stylesheet, 
 it does not seem to be working. I am using MS Office 2003. Did anyone 
 face similar kind of problem?
 
 Thanks 


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


CSS and cfcontent

2010-07-26 Thread fun and learning

Hi All- 

Does linked CSS document apply styles to the HTML within cfcontent 
(type=excel). I  do not see any CSS formatting in the excel document... 

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


CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Daniel Mackey

Hi All,

I was wondering if somebody could help with a problem we have encountered
since moving to ColdFusion 9 from ColdFusion 8.

When we use CFContent to serve a file, it fails on large files (300+mb) but
works on smaller (-30mb) files. It fails consistantly without a ColdFusion
error, the browser receives a 404 error

Example response in Chrome : Error 6 (net::ERR_FILE_NOT_FOUND): The file or
directory could not be found.

Nothing changed on the server except for the ColdFusion application server.

Server : 64bit Windows Server, ColdFusion 9 Standard

Hoping somebody has come across this before as I have exhausted all the
usual places without any luck.

Thanks in advance,
Dan.


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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Tom Chiverton

On Tuesday 22 Jun 2010 14:11:24 you wrote:
 Hi All,
 
 I was wondering if somebody could help with a problem we have encountered
 since moving to ColdFusion 9 from ColdFusion 8.
 
 When we use CFContent to serve a file, it fails on large files (300+mb) but
 works on smaller (-30mb) files. It fails consistantly without a ColdFusion
 error, the browser receives a 404 error

Does it get this error immediately ? Or after transferring some of the file ?
I'd suspect some setting you've not copied into the new server, like request 
timeout or RAM limits.

-- 
Tom Chiverton
Helping to completely establish visionary second-generation one-to-one niches 
as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Daniel Mackey

Hi Tom,

Everything has been double-checked and request limits checked. I tried on
anther CF9 server and the same thing happens. CF8 with the exact same
settings works

I'm at a complete loss and wondering if anyone else out there with CF9 could
try a simple test and see what happens?

cfheader name=Content-Disposition value=attachment; filename=cf9.exe
cfcontent type=unknown file=C:\temp\cf9.exe deletefile=No

Dan.

On Tue, Jun 22, 2010 at 2:50 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:


 On Tuesday 22 Jun 2010 14:11:24 you wrote:
  Hi All,
 
  I was wondering if somebody could help with a problem we have encountered
  since moving to ColdFusion 9 from ColdFusion 8.
 
  When we use CFContent to serve a file, it fails on large files (300+mb)
 but
  works on smaller (-30mb) files. It fails consistantly without a
 ColdFusion
  error, the browser receives a 404 error

 Does it get this error immediately ? Or after transferring some of the file
 ?
 I'd suspect some setting you've not copied into the new server, like
 request
 timeout or RAM limits.

 --
 Tom Chiverton
 Helping to completely establish visionary second-generation one-to-one
 niches
 as part of the IT team of the year 2010, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as partners.
  We use the word “partner” to refer to a member of the LLP, or an employee
 or consultant with equivalent standing and qualifications. Regulated by the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.co

 

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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Tom Chiverton

On Tuesday 22 Jun 2010 14:57:12 Daniel Mackey wrote:
 cfheader name=Content-Disposition value=attachment; filename=cf9.exe
 cfcontent type=unknown file=C:\temp\cf9.exe deletefile=No

Confirmed broken I think - congratulations, you've found a bug in ColdFusion 
:-)

I'm on 64bit SuSE Linux here, so used the CF9.0.0 installer for that O/S - 
file not found in FireFox.
Change the 'file' patch in CFCONTENT to a much smaller file like /etc/hosts 
and it all works as expected. Fun fun fun.

-- 
Tom Chiverton
Helping to continually disseminate vertical eigth-generation exceptional B2C 
e-tailers as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Tom Chiverton

Update:
I now can't get anything to work on the box, because :

Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The 
specific sequence of files included or processed is: 
/home/chivertont/workspace/billpack/webroot/t.cfm'' 
java.lang.OutOfMemoryError: Java heap space

Of course a swift bounce of CF fixes that, but I wonder if you could try 
increasing you heap size to beyond the file size and see what happens ?

-- 
Tom Chiverton
Helping to greatly seize B2B mission-critical compelling niches as part of the 
IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Daniel Mackey

Ugghhh. I was secretly hoping that wasn't going to be the case...

Anyone got any alternatives? Could this be performed using Java?

Dan.

On Tue, Jun 22, 2010 at 3:10 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:


 On Tuesday 22 Jun 2010 14:57:12 Daniel Mackey wrote:
  cfheader name=Content-Disposition value=attachment;
 filename=cf9.exe
  cfcontent type=unknown file=C:\temp\cf9.exe deletefile=No

 Confirmed broken I think - congratulations, you've found a bug in
 ColdFusion
 :-)

 I'm on 64bit SuSE Linux here, so used the CF9.0.0 installer for that O/S -
 file not found in FireFox.
 Change the 'file' patch in CFCONTENT to a much smaller file like
 /etc/hosts
 and it all works as expected. Fun fun fun.

 --
 Tom Chiverton
 Helping to continually disseminate vertical eigth-generation exceptional
 B2C
 e-tailers as part of the IT team of the year 2010, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as partners.
  We use the word “partner” to refer to a member of the LLP, or an employee
 or consultant with equivalent standing and qualifications. Regulated by the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.co

 

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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Daniel Mackey

That's interesting. I don't get any messages logged and the server stays
up

I might give the heap space a lash and see

I'm always confused as to where to set the heap, perma and all that jazz and
what effects it all has

Dan.

On Tue, Jun 22, 2010 at 3:11 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:


 Update:
 I now can't get anything to work on the box, because :

 Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The
 specific sequence of files included or processed is:
 /home/chivertont/workspace/billpack/webroot/t.cfm'' 
 java.lang.OutOfMemoryError: Java heap space

 Of course a swift bounce of CF fixes that, but I wonder if you could try
 increasing you heap size to beyond the file size and see what happens ?

 --
 Tom Chiverton
 Helping to greatly seize B2B mission-critical compelling niches as part of
 the
 IT team of the year 2010, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
 list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as partners.
  We use the word “partner” to refer to a member of the LLP, or an employee
 or consultant with equivalent standing and qualifications. Regulated by the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.co

 

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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Daniel Mackey

Unfortunately changing the heap (to 1024) didn't make a blind bit of
difference :-(

Anyone got any suggestions on a possible work around?

Dan.

On Tue, Jun 22, 2010 at 3:24 PM, Daniel Mackey dmac...@gmail.com wrote:

 That's interesting. I don't get any messages logged and the server stays
 up

 I might give the heap space a lash and see

 I'm always confused as to where to set the heap, perma and all that jazz
 and what effects it all has

 Dan.


 On Tue, Jun 22, 2010 at 3:11 PM, Tom Chiverton 
 tom.chiver...@halliwells.com wrote:


 Update:
 I now can't get anything to work on the box, because :

 Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The
 specific sequence of files included or processed is:
 /home/chivertont/workspace/billpack/webroot/t.cfm'' 
 java.lang.OutOfMemoryError: Java heap space

 Of course a swift bounce of CF fixes that, but I wonder if you could try
 increasing you heap size to beyond the file size and see what happens ?

 --
 Tom Chiverton
 Helping to greatly seize B2B mission-critical compelling niches as part of
 the
 IT team of the year 2010, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as partners.
  We use the word “partner” to refer to a member of the LLP, or an employee
 or consultant with equivalent standing and qualifications. Regulated by the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.co

 

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


RE: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Paul Alkema

Did you restart the ColdFusion service after making this change? Increasing
the Maximum JVM Heap Size doesn't take effect until the cf service is
restarted.

How much disk space is left on your server? How much ram does your server
have?

-Original Message-
From: Daniel Mackey [mailto:dmac...@gmail.com] 
Sent: Tuesday, June 22, 2010 10:39 AM
To: cf-talk
Subject: Re: CFContent failing on large files since moving to ColdFusion 9


Unfortunately changing the heap (to 1024) didn't make a blind bit of
difference :-(

Anyone got any suggestions on a possible work around?

Dan.

On Tue, Jun 22, 2010 at 3:24 PM, Daniel Mackey dmac...@gmail.com wrote:

 That's interesting. I don't get any messages logged and the server stays
 up

 I might give the heap space a lash and see

 I'm always confused as to where to set the heap, perma and all that jazz
 and what effects it all has

 Dan.


 On Tue, Jun 22, 2010 at 3:11 PM, Tom Chiverton 
 tom.chiver...@halliwells.com wrote:


 Update:
 I now can't get anything to work on the box, because :

 Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The
 specific sequence of files included or processed is:
 /home/chivertont/workspace/billpack/webroot/t.cfm'' 
 java.lang.OutOfMemoryError: Java heap space

 Of course a swift bounce of CF fixes that, but I wonder if you could try
 increasing you heap size to beyond the file size and see what happens ?

 --
 Tom Chiverton
 Helping to greatly seize B2B mission-critical compelling niches as part
of
 the
 IT team of the year 2010, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office
address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3
3EB.
  A list of members is available for inspection at the registered office
 together with a list of those non members who are referred to as
partners.
  We use the word partner to refer to a member of the LLP, or an
employee
 or consultant with equivalent standing and qualifications. Regulated by
the
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee
you
 must not read it and must not use any information contained in nor copy
it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.co

 



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


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Daniel Mackey

Yeah, I restarted the service.

We have 1 terrabyte free and 24gigs of RAM.

I'm truly perplexed at this one. Exact same code ran fine on CF8 with the
same settings on the same server

Dan.

On Tue, Jun 22, 2010 at 4:24 PM, Paul Alkema paulalkemadesi...@gmail.comwrote:


 Did you restart the ColdFusion service after making this change? Increasing
 the Maximum JVM Heap Size doesn't take effect until the cf service is
 restarted.

 How much disk space is left on your server? How much ram does your server
 have?

 -Original Message-
 From: Daniel Mackey [mailto:dmac...@gmail.com]
 Sent: Tuesday, June 22, 2010 10:39 AM
 To: cf-talk
 Subject: Re: CFContent failing on large files since moving to ColdFusion 9


 Unfortunately changing the heap (to 1024) didn't make a blind bit of
 difference :-(

 Anyone got any suggestions on a possible work around?

 Dan.

 On Tue, Jun 22, 2010 at 3:24 PM, Daniel Mackey dmac...@gmail.com wrote:

  That's interesting. I don't get any messages logged and the server stays
  up
 
  I might give the heap space a lash and see
 
  I'm always confused as to where to set the heap, perma and all that jazz
  and what effects it all has
 
  Dan.
 
 
  On Tue, Jun 22, 2010 at 3:11 PM, Tom Chiverton 
  tom.chiver...@halliwells.com wrote:
 
 
  Update:
  I now can't get anything to work on the box, because :
 
  Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The
  specific sequence of files included or processed is:
  /home/chivertont/workspace/billpack/webroot/t.cfm'' 
  java.lang.OutOfMemoryError: Java heap space
 
  Of course a swift bounce of CF fixes that, but I wonder if you could try
  increasing you heap size to beyond the file size and see what happens ?
 
  --
  Tom Chiverton
  Helping to greatly seize B2B mission-critical compelling niches as part
 of
  the
  IT team of the year 2010, '09 and '08
 
  
 
  This email is sent for and on behalf of Halliwells LLP.
 
  Halliwells LLP is a limited liability partnership registered in England
  and Wales under registered number OC307980 whose registered office
 address
  is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3
 3EB.
   A list of members is available for inspection at the registered office
  together with a list of those non members who are referred to as
 partners.
   We use the word partner to refer to a member of the LLP, or an
 employee
  or consultant with equivalent standing and qualifications. Regulated by
 the
  Solicitors Regulation Authority.
 
  CONFIDENTIALITY
 
  This email is intended only for the use of the addressee named above and
  may be confidential or legally privileged.  If you are not the addressee
 you
  must not read it and must not use any information contained in nor copy
 it
  nor inform any person other than Halliwells LLP or the addressee of its
  existence or contents.  If you have received this email in error please
  delete it and notify Halliwells LLP IT Department on 0870 365 2500.
 
  For more information about Halliwells LLP visit www.halliwells.co
 
 



 

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


RE: Serving Files via cfcontent - how much processing is required

2010-06-18 Thread UXB Internet

Mark:
 otherwise I would say use mod_xsendfile

I have sort of gone down the IIS road but have found a company that has an
Apache emulator ISAPI that is willing to add that functionality to their
product. http://www.helicontech.com/ape/ I will see what they come up with.

Dave:
 A symlink is just a pointer.
 http://en.wikipedia.org/wiki/NTFS_symbolic_link

I was indeed misunderstanding your original post and its intent. This may
have real possibilities and I will have to look further into testing the
practical application of generating and deleting them programmatically.  I
still favor the mod_x-sendfile methodology available in Apache which puts
the burden on the correct layer, the web server, to do the heavy lifting and
will have to see if it can be added to IIS.

William:
 I would highly recommend using a Content Delivery Network like Mosso
Files to store your files

Over the past 3 years I have looked at various Content delivery services,
although not at Mosso, and all have been a magnitude more expensive at the
volume we run over our current methodology and with no way to control costs.
In this particular endeavor we have more time than money to spend. The
intent was always break even. And while not perfect, close enough is better
than all others have done in this particular niche market (Halo Custom
Edition).


Gentlemen, Thank you for your responses they have all helped and given me
much to think about and digest. Thanks again.



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




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


Serving Files via cfcontent - how much processing is required

2010-06-17 Thread UXB Internet

Greetings,

I am hoping to pick some of your brains. I find myself in a quandary.  If
you will indulge me I will explain the situation as briefly as I can.

We current have a website, several really, that are fairly heavily
trafficked about 12 - 18 million pages per month primarily used to obtain
video game maps and assets for the games.  The website is not the issue
since we store the actual files for download on remote servers and link
people to them for download via FTP.  For the past 3 years this has been
working fairly well.  We average over  15,000GB / Month in file traffic and
serve an average of 350,000 Files /month using this method.  

We have recently upgraded our remote servers to Athlon 64 X2 3400+, DualCore
64 Bit, 2x 1.8 GHz, 4 GB DDR2-RAM Win2008 X64 Web IIS7 with substantially
more bandwidth availability.  Since it is a newer OS I was unable to use the
old CF5 installation on the remote server and since only needing minimal
functionality installed Tomcat and Open BlueDragon for the CFML engine.
This seems to work as before since we only use cf on the remote servers to
check if the file exists before sending them to the ftp.

In other applications I routinely use cfcontent to serve protected files on
extranet applications however the traffic ( 10-20 files/day) is nowhere near
as rigorous as will be required here with 12,000 per day of 40Meg average
per file.  I am considering serving the files now through cfcontent via HTTP
instead of FTP for a couple of reasons. 1) because most Internet Security
programs block FTP and we have to help people (mostly kids) open the port
and 2) to prevent direct linking to the files because this endeavor is
funded by ads on the website (and my wallet).

I know the most efficient way to serve this quantity and size of files is
via ftp but what I don't know is what is required by the various CF engines
AdobeCF, OpenBD, Bluedragon, Ralio to serve up the same via HTTP.  Will our
new server hardware handle that kind of HTTP file traffic (I suspect so),
will OpenBD/Tomcat be up to the task or will I need a different CFML engine?
Essentially what I need to know is what it would take to routinely serve
that many/size files through the CF engine. I don't want to go down this
road and find that people are having problems downloading because the CF
engine / Web server can't keep up.  Has anyone had experience with this and
can you offer some advice?


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










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


Re: Serving Files via cfcontent - how much processing is required

2010-06-17 Thread Dave Watts

 In other applications I routinely use cfcontent to serve protected files on
 extranet applications however the traffic ( 10-20 files/day) is nowhere near
 as rigorous as will be required here with 12,000 per day of 40Meg average
 per file.  I am considering serving the files now through cfcontent via HTTP
 instead of FTP for a couple of reasons. 1) because most Internet Security
 programs block FTP and we have to help people (mostly kids) open the port
 and 2) to prevent direct linking to the files because this endeavor is
 funded by ads on the website (and my wallet).

 I know the most efficient way to serve this quantity and size of files is
 via ftp but what I don't know is what is required by the various CF engines
 AdobeCF, OpenBD, Bluedragon, Ralio to serve up the same via HTTP.  Will our
 new server hardware handle that kind of HTTP file traffic (I suspect so),
 will OpenBD/Tomcat be up to the task or will I need a different CFML engine?
 Essentially what I need to know is what it would take to routinely serve
 that many/size files through the CF engine. I don't want to go down this
 road and find that people are having problems downloading because the CF
 engine / Web server can't keep up.  Has anyone had experience with this and
 can you offer some advice?

My advice for you would be to avoid using CFCONTENT for this, as it's
really not designed for this. Each request using CFCONTENT will use
one of your threads, I think, and there are decent alternatives.

The alternative I'd recommend would be the use of temporary symlinks.
When someone is granted access to a file, you'd create a symlink for
that file, pointing to a web-accessible location, then let the user
download it via HTTP. Sometime after, you'd delete the symlink.
Exactly how long after, I'm not sure - that would be a balance of
convenience to the user (in case they don't download it immediately)
versus the potential for abuse (the user provides the link to someone
else).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsi

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


  1   2   3   4   5   6   7   8   9   10   >