cfcontent, deleting images within a page

2007-01-08 Thread Scott Weikert
Hey gang, I'm having some trouble getting something to work as expected. I've got a script that generates a form based on data in a DB. I'm adding a CAPTCHA to it - Ryan Emerle's cfx_captcha to be specific. In the example page that came with the tag, in the end it spits out: cfcontent type

Re: cfcontent, deleting images within a page

2007-01-08 Thread Jon Clausen
: cfcontent type=image/jpeg file=(file path) deletefile=Yes which displays the image that was generated, and deletes it. I can't seem to work out how to do the same thing within my form, without it munging things up - currently instead of the form, image, and surrounding stuff, it simply

Counting Cfcontent Downloads

2006-12-19 Thread Mark Leder
When using CFContent, how would I write to a db AFTER a file is downloaded (such as a counter/date) in the background, without opening a new page? I do have each file listed in a db, with all the normal file scope fields (size, name, etc). [This E-mail scanned for viruses by Declude EVA

Re: Counting Cfcontent Downloads

2006-12-19 Thread Scott Stroz
: When using CFContent, how would I write to a db AFTER a file is downloaded (such as a counter/date) in the background, without opening a new page? I do have each file listed in a db, with all the normal file scope fields (size, name, etc). [This E-mail scanned for viruses by Declude EVA

RE: Counting Cfcontent Downloads

2006-12-19 Thread Bobby Hartsfield
You would just run your query to update the count at the same time you run the cfontent tag to push the file to the user. Running the query just AFTER the cfcontent tag would let you know that every count was atleast a prompt to download the file. They could still be counted and simply hit close

RE: Counting Cfcontent Downloads

2006-12-19 Thread Mark Leder
at least a prompt to download the file. They could still be counted and simply hit close or concel on the download prompt or even download half of the file and then cancel though. I don't think you are going to get around that in any easy way. That's what I told the client, that I can't control

Re: Problems with CFContent download of .tif image

2006-11-06 Thread Dawn Sekel
?imagename; cfheader name=Content-Disposition value=attachment; filename=myfile.tif cfcontent type=image/tiff variable=#cfhttp.FileContent# This code works great except for one problem. When the Windows dialog box opens and says Do you want to open or save this file? in XP

Re: Problems with CFContent download of .tif image

2006-11-03 Thread Andrea White
Check the permissions on the folder you are writing to. If your web service is IIS, and you are allowing anonymous access, then you should have a default guest account.That account needs to have write permission to the folder that your cfcontent is pointed to. You should be able to look

Re: Problems with CFContent download of .tif image

2006-11-03 Thread Andrea White
Check the permissions on the folder you are writing to. If your web service is IIS, and you are allowing anonymous access, then you should have a default guest account.That account needs to have write permission to the folder that your cfcontent is pointed to. You should be able to look

Problems with CFContent download of .tif image

2006-10-27 Thread Dawn Sekel
; cfheader name=Content-Disposition value=attachment; filename=myfile.tif cfcontent type=image/tiff variable=#cfhttp.FileContent# This code works great except for one problem. When the Windows dialog box opens and says Do you want to open or save this file? in XP professional clicking the save button

Re: REPOST: CFDOCUMENT and CFCONTENT

2006-10-25 Thread Bryan Stevenson
just fine with images on the box referenced directly with an IMG tag (i..e img src=http://domain.com/images/image.jpg). The problem arises when I use CFCONTENT to push the image. That and Ben's post mentions an error messageI just get a red X in place of the image in my FlashPaper/PDF docs

REPOST: CFDOCUMENT and CFCONTENT

2006-10-24 Thread Bryan Stevenson
Hey All, I'm trying to stick an image retrieved from a BLOB into a CFDOCUMENT generated page using this technique: img src=binaryImage.cfm binaryImage.cfm cffile action=readbinary file=#qMyQuery.BLOBFieldName# variable=outputImage cfcontent type=image/jpg variable=#outputImage

Re: REPOST: CFDOCUMENT and CFCONTENT

2006-10-24 Thread Kris Jones
with CFDOCUMENT and firewalls isn't it 3) works fine calling an image to normal way (img src=images/imagename.jpg 4) fails when images are pushed via CFCONTENT (see original post above) ~| Introducing the Fusion Authority Quarterly

Re: CFDOCUMENT and CFCONTENT

2006-10-23 Thread Bryan Stevenson
Sorry, where is the DB call here? On 10/21/06, Bryan Stevenson [EMAIL PROTECTED] wrote: binaryImage.cfm cffile action=readbinary file=d:\appName\images\image.jpg variable=outputImage cfcontent type=image/jpg variable=#outputImage# hehe...just aseume the file attribute is populated

Re: CFDOCUMENT and CFCONTENT

2006-10-23 Thread Bryan Stevenson
The correct mime type for a jpg image is image/jpeg. Try that. The browser itself is probably less picky - and may not even really care about mime types. Rick Thanks Rick, I'll give that a try.that said there are several mime types for jpegsimage/jpe, image/jpg, image/jpeg

Re: CFDOCUMENT and CFCONTENT

2006-10-23 Thread Josh Nathanson
There is also one image/pjpeg - that messed me up for a while recently. -- Josh - Original Message - From: Bryan Stevenson [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, October 23, 2006 9:35 AM Subject: Re: CFDOCUMENT and CFCONTENT The correct mime type

Re: CFDOCUMENT and CFCONTENT

2006-10-21 Thread James Holmes
Sorry, where is the DB call here? On 10/21/06, Bryan Stevenson [EMAIL PROTECTED] wrote: binaryImage.cfm cffile action=readbinary file=d:\appName\images\image.jpg variable=outputImage cfcontent type=image/jpg variable=#outputImage# -- CFAJAX docs and other useful articles: http

CFContent and MIME Types

2006-10-20 Thread Green Parot
Hello, I'm trying to use cfcontent on Coldfusion 5 to display files. For security purposes, I cannot link directly to the files. I'm trying to get this to work for any type of file. Currently it works for .doc and .xls files but not PDF files. The page does not throw any exceptions just

Re: CFContent and MIME Types

2006-10-20 Thread Green Parot
Hello, I'm trying to use cfcontent on Coldfusion 5 to display files. For security purposes, I cannot link directly to the files. I'm trying to get this to work for any type of file. Currently it works for .doc and .xls files but not PDF files. The page does not throw any

CFDOCUMENT and CFCONTENT

2006-10-20 Thread Bryan Stevenson
Hey All, I'm trying to stick an image retrieved from a BLOB into a CFDOCUMENT generated page using this technique: img src=binaryImage.cfm binaryImage.cfm cffile action=readbinary file=d:\appName\images\image.jpg variable=outputImage cfcontent type=image/jpg variable=#outputImage

Re: CFDOCUMENT and CFCONTENT

2006-10-20 Thread Bryan Stevenson
://coldfused.blogspot.com/2005/11/missing-images-in-cfdocument.html Search the page fro CFCONTENT and you'll see a few messages back and forth where someone else uses the same technique I am and having the same troublethe blog's author tried his only test and it worked fine for him!! Any mention

Re: CFDOCUMENT and CFCONTENT

2006-10-20 Thread Rick Root
Bryan Stevenson wrote: Hey All, I'm trying to stick an image retrieved from a BLOB into a CFDOCUMENT generated page using this technique: img src=binaryImage.cfm binaryImage.cfm cffile action=readbinary file=d:\appName\images\image.jpg variable=outputImage cfcontent type=image/jpg

Re: CFContent and MIME Types

2006-10-20 Thread Rick Root
Green Parot wrote: I would just like to add that is there anyway to dynamically determine the MIME type when using cfcontent? where filepath is the full physical path to a file you wish to determine the mimetype of... #getPageContext().getServletContext().getMimeType(filePath)# should

Re: CFContent and MIME Types

2006-10-20 Thread Justin Holzer
That won't work for CF5. That only works on MX and up as far as I know. On 10/20/06, Rick Root [EMAIL PROTECTED] wrote: Green Parot wrote: I would just like to add that is there anyway to dynamically determine the MIME type when using cfcontent? where filepath is the full physical path

Serving XML without CFCONTENT

2006-10-19 Thread John Morgan
I rewrote an application of mine using XML and web services. However, when I uploaded it to my hosting server I learned that CFCONTENT was disabled. This was a problem because I knew of no other method for setting the mime type to XML. I found several articles on serving image content via CFMX

Re: Serving XML without CFCONTENT

2006-10-19 Thread Teddy Payne
Is your webservice returning XML? Teddy On 10/19/06, John Morgan [EMAIL PROTECTED] wrote: I rewrote an application of mine using XML and web services. However, when I uploaded it to my hosting server I learned that CFCONTENT was disabled. This was a problem because I knew of no other method

Re: Serving XML without CFCONTENT

2006-10-19 Thread John Morgan
Is your webservice returning XML? Teddy On 10/19/06, John Morgan [EMAIL PROTECTED] wrote: Yes it is. I call the serveXML function to send an XML response. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of

Re: CFCONTENT and CFHEADER to download a file on CF 5

2006-08-29 Thread jim collins
) that I generated from powerpoint. My end result is to be able to fill in pieces of a powerpoint slide on the fly with CF to generate the appropriate .mht file to a user. However, if I pass it to the user as an .mht, it tries to open in the browser. I added a cfcontent and cfheader

Re: using application.cfm and cfcontent

2006-08-20 Thread Jochem van Dieten
Crow T. Robot wrote: 4) Jochem, what is supposed to happen if they don't have an allowed IP, a javascript alert is displayed, then when they click OK, they are redirected to the index page of the main site. What is/was happening is they were just being allowed to see the Word doc as if they

Re: using application.cfm and cfcontent

2006-08-20 Thread Casey Dougall
Wrapping validation right around the tag works works very well. In this case application.userIPList is a a list with multiple IP's verified against that of the the users current computer. cfif ListFindNoCase(Application.UserIPList,CGI.REMOTE_ADDR) cfcontent type=application/msword file

Re: using application.cfm and cfcontent

2006-08-20 Thread Crow T. Robot
On 8/20/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Crow T. Robot wrote: 4) Jochem, what is supposed to happen if they don't have an allowed IP, a javascript alert is displayed, then when they click OK, they are redirected to the index page of the main site. What is/was happening is

Re: using application.cfm and cfcontent

2006-08-20 Thread Crow T. Robot
application.userIPList is a a list with multiple IP's verified against that of the the users current computer. cfif ListFindNoCase(Application.UserIPList,CGI.REMOTE_ADDR) cfcontent type=application/msword file=#ExpandPath(file)# deletefile=no cfelse DOH! You don't have access to this without being from

Re: using application.cfm and cfcontent

2006-08-19 Thread Crow T. Robot
1) I know that cfcontent has no knowledge of the login status of the user. 2) I stated that I am checking the user's IP address as my login check against a database of allowed IPs. This is done in application.cfm and works fine for any pages that are not using cfcontent to serve up the content

Re: using application.cfm and cfcontent

2006-08-19 Thread James Holmes
Of course. Without the cfflush, the JS bit and eny other content you've written is reset by the CFCONTENT tag. Never rely on JS or any other browser output to secure your apps. All security should be server-side. On 8/20/06, Crow T. Robot [EMAIL PROTECTED] wrote: cfquery name=qry_ck_IP

Re: using application.cfm and cfcontent

2006-08-19 Thread Crow T. Robot
until we rewrite the app in a few months. Thanks for clarifying what I assumed was going on here. It helps. Ray On 8/19/06, James Holmes [EMAIL PROTECTED] wrote: Of course. Without the cfflush, the JS bit and eny other content you've written is reset by the CFCONTENT tag. Never rely on JS

CFCONTENT and CFHEADER to download a file on CF 5

2006-08-18 Thread Burns, John D
a cfcontent and cfheader to the top of the page to try to get it to force the filename to go back to the browser as a ppt so they can save it or open it. The code works fine on MX 6.1 but I can't get it to work on CF5. Anyone have any gotchas or reasons why I can't do it? Snippet: cfheader name

Re: using application.cfm and cfcontent

2006-08-18 Thread Jochem van Dieten
Ray Champagne wrote: I have a directory that is protected by a script that checks the user's IP against the database in Application.cfm. If the user is there, they are allowed in. What happens when the user is not in there? Jochem

Re: using application.cfm and cfcontent

2006-08-18 Thread Casey Dougall
I don't think cfcontent or any tag for that matter knows if a user is logged in. Regardless if the application.cfm you need to specifically wrap code around cfdocument to ensure the person is logged in or whatever before you run it. As an example, you can run a cfinclude and it will bypass

using application.cfm and cfcontent

2006-08-17 Thread Ray Champagne
I have a directory that is protected by a script that checks the user's IP against the database in Application.cfm. If the user is there, they are allowed in. Everything is working fine, save for one script that uses cfcontent to serve up Word documents. It seems like Application.cfm isn't

RE: using application.cfm and cfcontent

2006-08-17 Thread Ben Nadel
Anytime you call a CFM page, the Application file is being called first. . Try this, write some content in the Application page, then in the top of the page that serves the CFContent, do a CFFlush and a CFAbort and see if the content shows. If not, then something weird is going

RE: using application.cfm and cfcontent

2006-08-17 Thread Dave Francis
AFAIK, application.cfm is only processed when cf pages are being processed. But I've been wrong before (Feb 17th, 1971) -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Thursday, August 17, 2006 10:14 AM To: CF-Talk Subject: using application.cfm and cfcontent I

RE: using application.cfm and cfcontent

2006-08-17 Thread Ian Skinner
I wonder if this might be a side affect of the cfcontent... option to reset the request. Thus what was done in the cfapplicaiton... was thrown away? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko

Re: using application.cfm and cfcontent

2006-08-17 Thread Ray Champagne
I'm not sure what you mean. The Word doc *is* being served up via cfcontent in a cf page - Original Message - From: Dave Francis [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Thursday, August 17, 2006 11:33 AM Subject: RE: using application.cfm and cfcontent

Re: using application.cfm and cfcontent

2006-08-17 Thread Crow T . Robot
was to use cfflush if they are not authenticated, and everything seems to be working fine. Weird, I'd like an explanation as to why this has to be done in this manner. I know it has to do with the headers and something to do with cfcontent dumping all headers and starting over again, but I don't know

Re: using application.cfm and cfcontent

2006-08-17 Thread Crow T . Robot
Yea, that is what seems to be happening. I wonder if this might be a side affect of the cfcontent... option to reset the request. Thus what was done in the cfapplicaiton... was thrown away? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA

RE: using application.cfm and cfcontent

2006-08-17 Thread Ben Nadel
You have something weird going on... I think using CFFlush is probably not the best solution, as is more an indication that something odd is going on. As far as it not showing up as a word document, that is because CFFlush write all the page headers and there fore, CFContent and CFHeader

Re: cfcontent error - IE6 XP SP2 client and Win 2003 server

2006-07-25 Thread Robertson-Ravo, Neil (RX)
expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: michael acadia [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Fri Jul 21 20:30:52 2006 Subject: RE: cfcontent error - IE6 XP SP2 client and Win 2003 server

cfcontent error - IE6 XP SP2 client and Win 2003 server

2006-07-21 Thread Peter Legg
I've got a page that produces and Excel file for the user to either open or save. Here's the code: cfcontent type=application/msexcel cfheader name=Content-Disposition value=attachment;filename=#filename# This works fine from my Win2000 PC. However, it can't be opened using IE6 on an XP

RE: cfcontent error - IE6 XP SP2 client and Win 2003 server

2006-07-21 Thread michael acadia
Is the production server using a Cache-Control: no-cache HTTP header? I ran into a similar problem yesterday when opening a Word doc served by cfcontent (Win2k3 server). If MS Word was closed when I tried to open the doc from the web page, the no-cache was deleting the file before Word started

Re: cfcontent error - IE6 XP SP2 client and Win 2003 server

2006-07-21 Thread Michael Acadia
Peter, I'm using the same cache-control values on my server for the same reason. I'll have to try removing 'no-cache, no-store'. I'm not sure how or if that would affect form submissions. Unfortunately, I'm about to take off for a week and won't have a chance to test until I get back. FWIW,

faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Jeff Horne
I am using cfcontent to securely download files so the user can not see the path the file is stored in. With small files this is fine, but with large 100mb+ files, it is much, much slower than a straight html anchor tag. Does anyone have a fast alternative to using cfheader/cfcontent

Re: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Zaphod Beeblebrox
cfcontent to securely download files so the user can not see the path the file is stored in. With small files this is fine, but with large 100mb+ files, it is much, much slower than a straight html anchor tag. Does anyone have a fast alternative to using cfheader/cfcontent for large files

RE: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Dave Watts
I am using cfcontent to securely download files so the user can not see the path the file is stored in. With small files this is fine, but with large 100mb+ files, it is much, much slower than a straight html anchor tag. Does anyone have a fast alternative to using cfheader/cfcontent

Re: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Jeff Horne
One approach I've used successfully, is to create symbolic links to the files (in Unix) or their directories (in Windows), then delete those after a set period. Dave, Would you be able to site an example of how to do this in Windows? Thanks.

RE: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Dave Watts
Would you be able to site an example of how to do this in Windows? Use CFEXECUTE to run the junction.exe utility available from http://www.sysinternals.com/. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction

Re: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Jeff Horne
Use CFEXECUTE to run the junction.exe utility available from http://www.sysinternals.com/. I have downloaded the program and created this cfexecute. cfexecute name=d:\inetpub\wwwroot\junction.exe arguments=d:\file_downloads d:\inetpub\wwwroot\programs\download\ timeOut=600/cfexecute I have

RE: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Dave Watts
I have downloaded the program and created this cfexecute. cfexecute name=d:\inetpub\wwwroot\junction.exe arguments=d:\file_downloads d:\inetpub\wwwroot\programs\download\ timeOut=600/cfexecute I have done this but my link looks like file:///d:/file_downloads/42100/42100373.exe in

Re: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Jeff Horne
Thanks Dave. I'm getting there. We are on CF5. I've changed my code to the text below. cfexecute name=c:\WINNT\system32\junction.exe arguments=d:\inetpub\wwwroot\file_downloads d:\inetpub\wwwroot\programs\download\ timeOut=600 outputFile = d:\temp\output.txt/cfexecute cfset lcDownload = a

RE: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Dave Watts
I've changed my code to the text below. cfexecute name=c:\WINNT\system32\junction.exe arguments=d:\inetpub\wwwroot\file_downloads d:\inetpub\wwwroot\programs\download\ timeOut=600 outputFile = d:\temp\output.txt/cfexecute cfset lcDownload = a

Re: faster alternative to cfcontent for large file downloads?

2006-05-02 Thread Jeff Horne
Thanks again, Dave. Turns out the directory had permissions set to run executables. I turned it off and the option to save comes up fine. Much thanks. Jeff ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239346

Re: File header and footer in excel spreadsheet created with cfcontent?

2006-04-27 Thread Jeff Horne
Sorry, I meant CFcontent in my header. I was able to get the header and footer to appear using a style sheet. The odd thing now is that I have marked the style sheet to orient the spreadsheet in landscape but when I try to print it or print preview the file, it is in portrait. Here's my cfml

Serving flash with cfcontent

2006-04-21 Thread Rick Root
I'm trying to serve flash using cfcontent to prevent users from linking directly to the flash file. Basically, I'm creating an encrypted URL parameter in the cfm file with the embedded flash, and tacking it onto the url ... the cfm that serves the flash checks the url to make sure it's valid

Re: Serving flash with cfcontent

2006-04-21 Thread James Holmes
Perhaps a CFHEADER to provide the inline Content-Disposition header? Also, what does the HTML for presenting the flash look like? On 4/21/06, Rick Root [EMAIL PROTECTED] wrote: I'm trying to serve flash using cfcontent to prevent users from linking directly to the flash file. Basically, I'm

CFContent, ReportBuilder, and Batch Printing

2006-04-10 Thread Dave Sueltenfuss
those after the cfr 3)Repeat process for next printout I can get the CFR working, without an issue for a massprinting,using cfcontent. Can you can cfcontent more then once on a page? I need to call it for a PDF, then the TIF images, then the PDF again, etc, etc If not, does anyone have an idea

Re: Problem with CFContent or CFHeader and https

2006-03-29 Thread Ken Wilson
Try temporarily turning off any cache-control that you may implemented to see if resolves the problem. That was it for me. MS has a page that explains it a bit more. http://support.microsoft.com/kb/815313/ Ken On 3/16/06, Michael Traher [EMAIL PROTECTED] wrote: thanks will try that On

Re: Problem with CFContent or CFHeader and https

2006-03-29 Thread Michael Traher
thanks - will take a look at that On 3/29/06, Ken Wilson [EMAIL PROTECTED] wrote: Try temporarily turning off any cache-control that you may implemented to see if resolves the problem. That was it for me. MS has a page that explains it a bit more. http://support.microsoft.com/kb/815313/

cflocation and cfcontent

2006-03-23 Thread Ray Champagne
So, what's the verdict of the best workaround if I want to refresh a page after using cfcontent to download a file? Is this possible at all? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236035 Archives: http

Re: cflocation and cfcontent

2006-03-23 Thread Rob Wilkerson
PROTECTED] wrote: So, what's the verdict of the best workaround if I want to refresh a page after using cfcontent to download a file? Is this possible at all? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236038

Re: cflocation and cfcontent

2006-03-23 Thread Ray Champagne
] wrote: So, what's the verdict of the best workaround if I want to refresh a page after using cfcontent to download a file? Is this possible at all? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236040 Archives

Re: cflocation and cfcontent

2006-03-23 Thread Rob Wilkerson
to refresh a page after using cfcontent to download a file? Is this possible at all? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236041 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4

Re: cflocation and cfcontent

2006-03-23 Thread Ray Champagne
PROTECTED] wrote: So, what's the verdict of the best workaround if I want to refresh a page after using cfcontent to download a file? Is this possible at all? ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4

Re: Problem with CFContent or CFHeader and https

2006-03-16 Thread Michael Traher
no sorry, its an extranet system tied down to ip addresses for access On 3/15/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Michael Traher wrote: we have the same issue, and always end up writing the file then providing a download link for https sites. if anyone has a better solution I'm

Re: Problem with CFContent or CFHeader and https

2006-03-16 Thread Jochem van Dieten
Michael Traher wrote: no sorry, its an extranet system tied down to ip addresses for access If you want to test yourself, the best thing to do is examine the headers. Use a IE plugin or try telnet: 1. Find a Unix machine 2. Open a SSL telnet connection to the server: telnet -z ssl

Re: Problem with CFContent or CFHeader and https

2006-03-16 Thread Michael Traher
thanks will try that On 3/16/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Michael Traher wrote: no sorry, its an extranet system tied down to ip addresses for access If you want to test yourself, the best thing to do is examine the headers. Use a IE plugin or try telnet: 1. Find a Unix

Problem with CFContent or CFHeader and https

2006-03-15 Thread Ricki Stern
Hi, We are running CF5 on Win 2k (IIS) and we recently noticed a problem. We have some apps that push out files to the web browser. The lines of code we use to do this are something like CFHEADER NAME=content-disposition VALUE=inline;filename=report.csv CFCONTENT TYPE=application/unknown

Re: Problem with CFContent or CFHeader and https

2006-03-15 Thread Jochem van Dieten
Ricki Stern wrote: We are running CF5 on Win 2k (IIS) and we recently noticed a problem. We have some apps that push out files to the web browser. The lines of code we use to do this are something like CFHEADER NAME=content-disposition VALUE=inline;filename=report.csv CFCONTENT TYPE

Re: Problem with CFContent or CFHeader and https

2006-03-15 Thread Michael Traher
noticed a problem. We have some apps that push out files to the web browser. The lines of code we use to do this are something like CFHEADER NAME=content-disposition VALUE=inline;filename=report.csv CFCONTENT TYPE=application/unknown FILE=#TheReportPath# DELETEFILE=NO RESET=NO We have

Re: Problem with CFContent or CFHeader and https

2006-03-15 Thread Jochem van Dieten
Michael Traher wrote: we have the same issue, and always end up writing the file then providing a download link for https sites. if anyone has a better solution I'm keen to hear it. Do you have a URL where I can test? Jochem

Problem with cfcontent in a cfc

2006-02-18 Thread Will Tomlinson
Hey, I'm using cfcontent in a method that just delivers files. I pass in an argument which is a filename. But my code just downloads a word doc as a cfm file, and it names it index.cfm page. It won't download the requested file AS the file and with the correct filename. I know I'm using

Re: Problem with cfcontent in a cfc

2006-02-18 Thread Will Tomlinson
Ok, I figured out part of it. I added this : cfheader name=Content-Disposition value=inline; filename=#ARGUMENTS.filename# Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232778 Archives:

Re: Problem with cfcontent in a cfc

2006-02-18 Thread Will Tomlinson
=Content-Disposition value=attachment; filename=#ARGUMENTS.filename# cfcontent file=#fullpath# type=application/unknown /cfif /cffunction Found a good resource for cfcontent here: http://www.actcfug.com/index.cfm?fuseaction=TipViewTipID=33

Re: Problem with cfcontent in a cfc

2006-02-18 Thread Rick Root
cfset fullpath = ExpandPath(UploadedFiles) \ #ARGUMENTS.filename# cfif FileExists(#fullpath#) cfheader name=Content-Disposition value=attachment; filename=#ARGUMENTS.filename# cfcontent file=#fullpath# type=application/unknown /cfif /cffunction Found a good resource

Re: Problem with cfcontent in a cfc

2006-02-18 Thread Will Tomlinson
Outputting data to the browser from within a CFC is BLASPHEMY! Someone, please make him stop! Ohhh .. .but it's so FUN!! :) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232822 Archives:

Re: Problem with cfcontent in a cfc

2006-02-18 Thread John C. Bland II
=#ARGUMENTS.filename# cfcontent file=#fullpath# type=application/unknown /cfif /cffunction Found a good resource for cfcontent here: http://www.actcfug.com/index.cfm?fuseaction=TipViewTipID=33

Re: Problem with cfcontent in a cfc

2006-02-18 Thread Rick Root
John C. Bland II wrote: Where is the cfc? I think I missed where he said he was using a cfc. see the subject line =) ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232825 Archives:

Re: Problem with cfcontent in a cfc

2006-02-18 Thread Will Tomlinson
Oops! I forgot to var fullpath. Got it fixed! :) Will ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232826 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription:

cfcontent quicktime movie

2006-02-11 Thread Andrew Grosset
I would like this movie to play (inline) as soon as its loaded the code below doesn't work unless I change the inline to attachment in which case a dialogue box pops up asking wether I want to open with or save to disk etc. I'm thinking that its not possible to do this with just cfcontent

Re: CFContent cancels out JS

2005-11-02 Thread daniel kessler
Can you walk me through this a touch? I have a page that dumps a database using cfdump. Above the cfdump is a button that says download to excel. If clicked, do I reload the page, do a cfcontent and output the database info into a table, then reload the original page (with the button

Re: CFContent cancels out JS

2005-11-02 Thread James Holmes
It's even eaiser than that. cfif StructKeyExists(FORM,WhateverYouCallTheSubmitButton) cfcontent ...etc for the cfcontent bit cfelse !--- your entire page, cfdump, form and all here --- /cfif This way the page shows the webpage in the browser unless the form button is clicked

Re: CFContent cancels out JS

2005-11-02 Thread daniel kessler
That worked great! I kept the download code as a separate page and just did a cfinclude on it. Wonderful. Thank for your help! It's even eaiser than that. cfif StructKeyExists(FORM,WhateverYouCallTheSubmitButton) cfcontent ... etc for the cfcontent bit cfelse !--- your

CFContent cancels out JS

2005-11-01 Thread Daniel Kessler
I display a database (cfdump) with a download database button at the top. That'll take you to another page that downloads the database using the table as a file_name. This is done through cfcontent. When I do this, it opens up a new window, so at the end of the CF code, I put some js

RE: CFContent cancels out JS

2005-11-01 Thread Dawson, Michael
: Tuesday, November 01, 2005 8:20 AM To: CF-Talk Subject: CFContent cancels out JS I display a database (cfdump) with a download database button at the top. That'll take you to another page that downloads the database using the table as a file_name. This is done through cfcontent. When I do

RE: CFContent cancels out JS

2005-11-01 Thread Dave Watts
I display a database (cfdump) with a download database button at the top. That'll take you to another page that downloads the database using the table as a file_name. This is done through cfcontent. When I do this, it opens up a new window, so at the end of the CF code, I put some

Re: CFContent cancels out JS

2005-11-01 Thread daniel kessler
well, I'd like the blank window to close instead of just sitting there with the user wondering what to do. It doesn't seem that I can put a close before the cfcontent either. I put this content on a seperate page because otherwise it tries to take all my page information (banner, menus, etc

CFContent question ...

2005-08-31 Thread Andy Mcshane
After I have created a document using cfdocument I am using the following code to open the pdf, cfheader name=content-disposition value=attachment; filename=wibble.pdf cfcontent type=aplication/pdf file=#expandpath('MyFilePath')# deletefile=yes reset=no This shows a dialogue box to the user

Re: CFContent question ...

2005-08-31 Thread S . Isaac Dealey
After I have created a document using cfdocument I am using the following code to open the pdf, cfheader name=content-disposition value=attachment; filename=wibble.pdf cfcontent type=aplication/pdf file=#expandpath('MyFilePath')# deletefile=yes reset=no This shows a dialogue box

RE: CFContent question ...

2005-08-31 Thread Andy McShane
Thanks for that, at least I won't waste any more time looking :-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 17:29 To: CF-Talk Subject: Re: CFContent question ... After I have created a document using cfdocument I am using the following

RE: CFContent question ...

2005-08-31 Thread S . Isaac Dealey
for that, at least I won't waste any more time looking :-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 31 August 2005 17:29 To: CF-Talk Subject: Re: CFContent question ... After I have created a document using cfdocument I am using the following code to open the pdf

RE: Cfcontent Excel Problems

2005-07-29 Thread Robertson-Ravo, Neil (RX)
How are you creating the Excel sheet? -Original Message- From: CHANCE, JENNIFER M. (JSC-BJ) (BAS) [mailto:[EMAIL PROTECTED] Sent: 28 July 2005 16:27 To: CF-Talk Subject: Cfcontent Excel Problems Hi there... I have created a dynamic excel page in coldfusion. Everything is great

Cfcontent Excel Problems

2005-07-28 Thread CHANCE, JENNIFER M. (JSC-BJ) (BAS)
the htm file into the cfm file (the only difference being the cfcontent tag) and this still wouldn't work. Does anybody have a workaround? Or know how I could open it in a new tab? Thanks so much! Jen ~| Discover CFTicket

<    1   2   3   4   5   6   7   8   9   10   >