This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes File Upload Problem with WAS 4.0.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "File Upload Problem with WAS 4.0.1" Watch "File Upload Problem with WAS 4.0.1" New topic
Author

File Upload Problem with WAS 4.0.1

Satheesh Kumar G
Greenhorn

Joined: Feb 08, 2003
Posts: 21
hi,
I am trying to upload files from client machine to the server using java servlet (provided by O' reilly website). The code is working fine with Tomcat but its not working with websphere. The problem is, because we have set the form enctype='multipart/form-data', request is going as inputstream. This inputstream is becoming empty in websphere in the servlet.

I tried some small example for file upload which is also not working with websphere(but working with tomcat).
thanks in advance
regards,
Satheesh
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Apply fixpack 2 (http://www-3.ibm.com/software/webservers/appserv/support/index.html). This bug was fixed in that fixpack. BTW, you might want to catch up your WebSphere -- the current fixpack is now 5.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Satheesh Kumar G
Greenhorn

Joined: Feb 08, 2003
Posts: 21
hi,
Thanks for the reply. I applied FixPak2 but the problem is not still resolved.
thanks and regards,
Satheesh
yang lu
Greenhorn

Joined: Oct 24, 2002
Posts: 15
You may need Version 4.0 FixPak 4. we use Webspher 4.0.4 and upload works fine.
Hope this helps
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File Upload Problem with WAS 4.0.1
 
Similar Threads
Problem About Java File Upload
inputstream reading wrong file when a url is passed.
problem with multipart/form-data
how to deploy a servlet into a web server
PUT method is not working in Tomcat