Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Code works in IE but not netscape

Posted on 2002-06-27
3
Medium Priority
?
127 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 200 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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: …

722 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