Solved

Code works in IE but not netscape

Posted on 2002-06-27
3
120 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
  • 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now