Solved

File Upload in IE 5.0

Posted on 2002-07-10
2
393 Views
Last Modified: 2010-03-31
I want to upload different type's files in IE 5.0, 5.5, 6.0.
When I tested the following code in IE 6.0, it works, but it doesn't work in IE 5.0.
 response.setContentType("application/download");
 response.setHeader("Content-Disposition", "; filename=" + fileName);  

Here is my another try, but it will prompt the upload window twice.
response.setContentType("application/download");
response.setHeader("Content-Disposition", "attachment; filename=" + fileName);  

Can you help me to get the correct solution? Thanks!  
0
Comment
Question by:DevelHelper
2 Comments
 

Author Comment

by:DevelHelper
ID: 7146114
I found the problem caused by the ";" before "filename". The following code works in both IE 6.0 and IE 5.0.
response.setContentType("application/download");
response.setHeader("Content-Disposition", "filename=" + fileName);  
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 50 total points
ID: 7146409
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

760 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

20 Experts available now in Live!

Get 1:1 Help Now