Solved

File Upload in IE 5.0

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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 …

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