Solved

File Upload in IE 5.0

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java exception bubble up 2 24
mysql jsp example issue 32 73
ejb message driven bean mdb creation steps 2 35
Selenium docs api java index 3 67
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

733 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