Solved

Code works in IE but not netscape

Posted on 2002-06-27
3
125 Views
Last Modified: 2013-12-24
I'm trying to allow people to download exe files from my site.
I'm using the code below:

<cfheader name="Content-Disposition" value="attachment; filename=#url.id#;" > 

<cfcontent type="application/unknown" file="software\#URLDecode(url.id)#" deletefile="No" >

It works fine in IE6 but dose not work in NN6 (says there is no function named URLDecode)

Can anyone help..

Thanks
0
Comment
Question by:andy98
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
anandkp earned 50 total points
ID: 7115734
Hi there,

i use the following code

the only diff u would notice is that i initialise the variable before using it in CFCONTENT.

ie CFSET SPATH = "software\#URLDecode(url.id)#"

---------------------------------------------------

<!--- file_to_be_download.cfm - Name of file to be downloaded. --->    
     <CFHEADER NAME="content-disposition" VALUE="attachment; filename=#SFILENAME#">
     
     <!--- get teh physical [c:\asdas\asda\asdas.cfm] path for the file to be downloaded. --->
     <CFCONTENT TYPE="application/octet-stream" FILE="#SPATH#" DELETEFILE="FALSE" RESET="TRUE">

------------------------------------------------------

see if this helps
let me know

K'Rgds
Anand
0
 

Author Comment

by:andy98
ID: 7116425
Still dose not work (with NN at least)
here is my code and let me know if I'm doing something wrong


<CFSET SPATH = "d:\mysite\download\software\#URLDecode(url.id)#">

---------------------------------------------------

<!--- file_to_be_download.cfm - Name of file to be downloaded. --->    
    <CFHEADER NAME="content-disposition" VALUE="attachment; filename=#url.id#">
   
    <!--- get teh physical [c:\asdas\asda\asdas.cfm] path for the file to be downloaded. --->
    <CFCONTENT TYPE="application/octet-stream" FILE="#SPATH#" DELETEFILE="FALSE" RESET="TRUE">
0
 

Author Comment

by:andy98
ID: 7116887
I did change the relative path and worked fine.
thanks
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question