I have been asked to make a change to a blog like feature. Specifically, they
want to allow users to upload a single image per blog post but the images are
to be stored in a non-web accessible location.
When viewing blog posts, the images are supposed to appear within the text of
the blog
The first question I would ask is Why do they want the images stored in a
non-web-accessible location
If the answer is something lame like, they don't want users to be able to
download them, then you can get around this whole issue as you can tell them
that there is no way to totally prevent a
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
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
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
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
Anybody?
- Original Message -
From: Joe Eugene
To: CF-Talk
Sent: Wednesday, March 31, 2004 4:43 PM
Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was - CFHEADER CFCONTENT question)
Is there a BUG using cfContent in CFMX?
It throws all kinda Errors on Log Files when downloading
Possible Bugs in CFMX - CFContent ? (Was -
CFHEADER CFCONTENT question)
Anybody?
- Original Message -
From: Joe Eugene
To: CF-Talk
Sent: Wednesday, March 31, 2004 4:43 PM
Subject: RE: Any Possible Bugs in CFMX - CFContent ? (Was
- CFHEADER CFCONTENT question)
Is there a BUG
CFCONTENT question)
I've never had issues and I've served files up to a few meg, both reading
from the filesystem and dynamically generated in realtime.
Cheers,
barneyb
-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 9:48 AM
To: CF-Talk
- CFContent ? (Was
- CFHEADER CFCONTENT question)
I've never had issues and I've served files up to a few
meg, both reading
from the filesystem and dynamically generated in realtime.
Cheers,
barneyb
-Original Message-
From: Joe Eugene [mailto:[EMAIL PROTECTED]
Sent: Thursday, April
Hi,
I have a intranet application where I am allowing people to download access
database. Following is the code I am using
CFHEADER NAME=content-disposition VALUE=attachment;
filename=#FileName#
CFCONTENT TYPE=application/octet-stream
FILE=#application.filehttppathstring##location# DELETEFILE=No
What does the variable #filename# and #application.filehttppathstring#
resolve to?
I don't really want the real thing if security is an issue, just a dummy
example.
Ray
http://www.crystalvision.org
At 01:19 PM 3/31/2004, Ketan Patel wrote:
Hi,
I have a intranet application where I am allowing
:20 PM
To: CF-Talk
Subject: CFHEADER CFCONTENT question
Hi,
I have a intranet application where I am allowing people to download
access
database. Following is the code I am using
CFHEADER NAME=content-disposition VALUE=attachment;
filename=#FileName#
CFCONTENT TYPE=application/octet-stream
FILE
Hello Everybody,
I have this form with a a drop-down box and a submit
button. The drop down box displays a list of
departments and has a onChange
event, that calls a _javascript_ function that reloads
the page. ColdFusion reads the querystring,
passes it in a cfquery select statement and displays
coder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 27, 2004 6:27 AM
To: CF-Talk
Subject: CFFILE/CFCONTENT question.. Please help
CFHEADER NAME=Content-TypeVALUE=application/msexcel
CFHEADER NAME=Content-Disposition VALUE=inline;
filename=\ExportToXLS.xls
CFCONTENT TYPE=application/msexcelFILE
To: CF-Talk
Subject: CFFILE/CFCONTENT question.. Please help
Hello Everybody,
I have this form with a a drop-down box and a submit button.
The drop down box displays a list of departments and has a
onChange event, that calls a _javascript_ function that reloads
the page. ColdFusion reads
Thank you Pascal and Michael for your help. I've got it working now.
- cfcoder
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Hey everyone,
With CFCONTENT, my downloads are getting renamed?
I've got a form submit (for a EULA) that goes to a page that uses CFCONTENT.
1. The user chooses the file from a list of links (filename is passed to the next page)
2. This page is the EULA form that has a hidden field for the
Place the following line before your CFCONTENT tag and replace
therealfilename with the name of your file... All will be well.
cfheader name=Content-Disposition
value=attachment;filename=therealfilename
Yours
Paul Vernon
http://www.web-architect.co.uk http://www.web-architect.co.uk/
t: +44
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 9:44 AM
To: CF-Talk
Subject: CFContent question
I have searched the archive but can not seem to find the answer to this
exact question...
Did NT 4.0 SP 6a fix the problem with CFCONTENT? I
I have searched the archive but can not seem to find the answer to this
exact question...
Did NT 4.0 SP 6a fix the problem with CFCONTENT? I know 6 broke it... but
did 6a actually FIX it?
Thanks.
Vance Duke
Cold Fusion Application Developer
i2 Technologies
(469) 357-4729
.
Best regards,
Zac Bedell
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 11, 2001 9:44 AM
To: CF-Talk
Subject: CFContent question
I have searched the archive but can not seem to find the
answer to this
exact question...
Did
Did NT 4.0 SP 6a fix the problem with CFCONTENT? I know 6
broke it... but did 6a actually FIX it?
No. The "problem" with SP6+ and CFCONTENT is that, on pre-SP 6 IIS servers,
you could use a "fake" URL to tell the browser the file name of the
downloaded file. Here's an example of this:
I'm not using any MIME type that I know of. Should this be a part of the CFContent
tag?
Since the .xls is opening client-side, Excel has to reside on the client (Excel on
the server is only applicable when you're creating .xls files on the fly, using the
Excel com object). What MIME type
I'm opening an existing Excel file using CFCONTENT. This works fine from the wwwroot
on my hard drive. But, when I post the page on the company server, and view it, the
web page loads but Excel does not execute. (I put the excel file in the same folder)
I now wonder if Exel.exe has to
Since the .xls is opening client-side, Excel has to reside on the client
(Excel on the server is only applicable when you're creating .xls files
on the fly, using the Excel com object). What MIME type are you using
with CFContent?
--
Billy Cravens
[EMAIL PROTECTED]
Kathy Bergman wrote:
right now just application/msword
-Original Message-
From: Billy Cravens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 6:33 PM
To: [EMAIL PROTECTED]
Subject: Re: CFContent question
Depends alot on the mime-type. What are you using?
--
Billy Cravens
[EMAIL PROTECTED
Hi gang,
When I use CFContent in IE, it opens my file (MSWord or otherwise) in my
browser. That is, it still _is_ MSWord, but it's within my IE5. In
Netscape, on the other hand, the same call to CFContent opens the actual
application on my computer instead of in the browser. Is there a way to
Depends alot on the mime-type. What are you using?
--
Billy Cravens
[EMAIL PROTECTED]
Robyn Follen wrote:
Hi gang,
When I use CFContent in IE, it opens my file (MSWord or otherwise) in my
browser. That is, it still _is_ MSWord, but it's within my IE5. In
Netscape, on the other hand,
29 matches
Mail list logo