Solved

File Upload in IE 5.0

Posted on 2002-07-10
2
394 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
network + 7 80
base64 decode encode 12 119
ArrayIndexOutOfBoundException 9 66
factorial example 4 34
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

930 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

11 Experts available now in Live!

Get 1:1 Help Now