its
because your using the same page to do your download
Look
at it this way
- Page loads
- Click link for download
- Page reloads but your telling CF to push the content of a word doc to the client and ask them to download it. At this point your page headers have changed and are no longer HTML
- User clicks cancels the download but the content is still sitting there
- User clicks again and the browser now just pushes that word doc content to the browser
this
is basicaly what is happeneing, which is why I do my downloads from a
popup
Steve
--------Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Taco Fleur
Sent: Wednesday, 4 February 2004 9:01 PM
To: CFAussie Mailing List
Subject: [cfaussie] Weird stuff going onThis is weird!Click the "Click here" link, click "cancel" then click the link in"Click here if you want to be notified when this file is modified."If nothing weird happens straight away, then try it a few times.Its internet exploder where the weirdness occurred for me.The last link that enables you to be notified should present a message likeForbidden
You don't have permission to access /index/file/update/notify/ on this server.
But instead its shows the content of the Word document, the Word document is definitely not in that folder...
Somehow I think the following headers have something to do with it, anyone?
<cfheader name="Content-type" value="application/octet-stream">
<cfheader name="Content-Disposition" value="attachment; filename=#url.fileName#">
<cfheader name="Content-transfer-encoding" value="binary">
<cfheader name="Content-length" value="1">
<cfcontent type="none" file="#variables.filePath#">Taco Fleur
Tell me and I will forget
Show me and I will remember
Teach me and I will learn---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
