>- see footer for list info -<
Is this error the same for all IE versions?  Is it same for other browsers e.g. 
Firefox?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Taz
Sent: 29 September 2005 13:36
To: [email protected]
Subject: [CF-Dev] CFContent... odd behaviour


>- see footer for list info -<
Normally I can't understand why anyone has trouble using cfcontent to push 
files, as it's essentially one of the easiest things in the world.

Until it fails, that is.

So there I was, all happy in the knowledge that my application was running like 
a dream, when my client tells me that the file download won't work. Of course 
it does, I laughed. How could my age-old cloned cfcontent page possibly fail? 
But sure enough it was what we the professionals like to describe as "Buggered".

I checked the paths. Fine.
I checked for spelling mishtaks. Fine.
I checked that the files did indeed exist. Fine.

All I got was a 404.

I then decided to remove the header tag: 

<cfheader name="content-disposition" value="attachment; 
filename=#variables.FileName#">

And knock me down with a feather! Everything starts working, only inline. 
Inline is all very well if that's what you want, but do you know what? I don't. 
I want a forced download. Is that too much to ask?

So why has this happened? I've been creating forced download pages for years 
without any problems, always using my trusted friend: 

<cfheader name="content-disposition" value="attachment; 
filename=#variables.FileName#">
<cfcontent type="#variables.MimeType#" deletefile="No" 
file="#variables.MyDir##variables.FileName#">

I've now tried everything. I've tried ditching the mimetype. I've tried other 
mimetypes (octet stream, unknown, etc.). No luck. I've tried killing all the 
whitespace on the forced page. I've tried reasoning with it. I've tried 
threats, and I've even tried promises of packets of Maltesers. None of which 
have worked. 

So my question is. Why is a humble cfheader killing the whole thing and 
reducing my download to a measly 404? 
Oh, and does anyone have any more Maltesers? I've run out.

Taz
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________________________________
Confidentiality:  This e-mail and its attachments are intended for the above 
named only and may be confidential.  If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; please 
reply to this e-mail and highlight the error.

Security Warning:  Please note that this e-mail has been created in the 
knowledge that Internet e-mail is not a 100% secure communications medium.  We 
advise that you understand and observe this lack of security when e-mailing us.

Viruses:  Although we have taken steps to ensure that this e-mail and 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure they are actually virus free.
_______________________________________________________________________
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to