CFDEV wrote:
I have a code on a page that pop up a save/open for downloading a page :
cfheader
name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier)#
cfcontent
file=#nom_fichier2#
type=application/pdf
deletefile=No /
And I want to redirect the page to
And the reason is both tags rewrite the header.
Micha Schopman
Software Engineer
Modern Media, Databankweg 12 M, 3821 ALAmersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User
And the reason is both tags rewrite the header.
Well, not exactly. You can use multiple tags that rewrite the header in the
same page, as long as those tags don't tell the browser to do two things at
once that can't be done in one request. For example, you can use CFCOOKIE
and CFLOCATION in CFMX
Ahh thanks Matt -- I'd forgotten about that -- yea, some
folks use cfheader themselves to accomplish the redirect,
which is similar to using cflocation. The difference is that
with a cfheader tag (I think it's status with a value of
302 but that's not really my forte) won't also terminate
Dave Watts wrote: When you use CFCONTENT to deliver a file, it doesn't set
a Location header.
It simply delivers the content specified by the tag.
I've been meaning to ask for awhile, but how much overhead does CFCONTENT
create if you are serving a 1MB file? Howabout a 10MB file? Does the CF
I've been meaning to ask for awhile, but how much overhead
does CFCONTENT create if you are serving a 1MB file? Howabout
a 10MB file? Does the CF server actually handle the file, or
does it just provide a pointer to the local file?
I believe that the request is handled entirely by the web
I have a code on a page that pop up a save/open for
downloading a page :
cfheader name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier)#
cfcontent file=#nom_fichier2#
type=application/pdf
deletefile=No /
And I want to redirect the page to another page after
, August 30, 2004 10:23 PM
To: CF-Talk
Subject: Re: redirect after cfheader/cfcontent
I have a code on a page that pop up a save/open for
downloading a page :
cfheader name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier)#
cfcontent file=#nom_fichier2#
type
Thanks guys...
Isaac your solution works just fine with the location...
Pat
_
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: August 30, 2004 22:23
To: CF-Talk
Subject: Re: redirect after cfheader/cfcontent
I have a code on a page that pop up a save/open for
downloading
, 2004 22:57
To: CF-Talk
Subject: RE: redirect after cfheader/cfcontent
You can't use cflocation or cfheader after cfcontent, but you can use
cfheader before cfcontent. Thus, you can issue a redirect with cfheader and
still use cfcontent.
-Matt
-Original Message-
From: [EMAIL PROTECTED
Thanks guys...
Isaac your solution works just fine with the location...
Pat
Ahh cool, good to know I could help. :)
s. isaac dealey954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
Dealey
Sent: Monday, August 30, 2004 10:23 PM
To: CF-Talk
Subject: Re: redirect after cfheader/cfcontent
I have a code on a page that pop up a save/open for
downloading a page :
cfheader name=Content-Disposition
value=attachment;filename=#getfilefrompath(cas.fichier
)#
cfcontent file
Oups, I respond too fast.. I just tested it with the
pop-up blocker on and
it blocks the target=_blank which is no good..
Matt, how do I redirect in the cfheader? I use the
cfheader before the
cfcontent..
Thanks
Pat
Sounds to me like a bad popup blocker... iirc the blockers in the
13 matches
Mail list logo