Solved

CFHeader/CFContent Problem

Posted on 2002-04-18
12
313 Views
Last Modified: 2013-12-24
I have used the following code for downloading a file to the client machine..

<cfheader name="Content-Disposition" value="attachment; filename=#URLDecode(URL.file)#">
 
<cfcontent type="application/octet-stream" file="#fn#" deletefile="No">

This is working fine in IE 5.5,

But in IE 6.0  

I am getting two open dialog box'es while trying to open the file.

I will be grateful if someone can help me out of this problem.

Thanks in advance..

Suresh.
0
Comment
Question by:mv_suresh
[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
12 Comments
 
LVL 11

Accepted Solution

by:
jimmy282 earned 100 total points
ID: 6952004
I think its a bug in IE6
0
 

Author Comment

by:mv_suresh
ID: 6952149
Jimmy! It could be a bug,  Thanks for the reply.

0
 
LVL 19

Assisted Solution

by:cheekycj
cheekycj earned 100 total points
ID: 6954320
if its a bug in IE6.. then find out what works in IE 6 and do a server side detect of the browser and handle it accordingly.

CJ
0
Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

 

Author Comment

by:mv_suresh
ID: 6954524
CJ,

I didn't get you, can you explain in detail, How can I handle this,  Is there any way that I could control the setting of the browser through Cold Fusion or Javascript,  If so how can I do that.

Thanks,

Suresh.

0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6954531
you can detect the browser by searching for IE 6's user agent string in the CGI.HTTP_USER_AGENT var.. then use a if then else accordingly.

CJ
0
 

Author Comment

by:mv_suresh
ID: 6954585
CJ,

Okay, but how can I control the File download dialog from the code.  

I could able to save the file with the single click.

But when I select the 'Open' button, then
It is agiain popping up the same dialog box,  and then
when I click on 'open' button then the file is opening on the browser.

Is there any way that I could restrict the second popup dialog when I clicked on 'Open'

All this thing is happening in IE 6.0.  whereas in IE5.5 this is working perfectly fine.

I think I have to control some browser setting through the code.

Hope you could understand what I am trying to convey..
Thanks,
suresh.





0
 

Expert Comment

by:raja_velpuru
ID: 6982003
What is the type of file you want to download?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7003815
any updates mv_suresh?
0
 

Author Comment

by:mv_suresh
ID: 7004440
CJ,

I didn't get any solution so far..  I think it could be a problem with IE 6.0.

Thanks,
0
 
LVL 3

Expert Comment

by:MartinCSutton
ID: 7405029
Conversely, I have the problem with IE 5.5 but NOT with IE 6.

My code is very similar...

<CFHEADER name="content-disposition" value="attachment;filename=#filename#">
<CFCONTENT file="#filepath#" type="text/csv" deletefile="no" reset="yes">

Strange!
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 10784745
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation in the Cleanup topic area:

Split jimmy282 & cheekycj

Please leave any comments here within the next four days.

mrichmon
EE Cleanup Volunteer
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

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…
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 video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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