Solved

Code works in IE but not netscape

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

18 Experts available now in Live!

Get 1:1 Help Now