File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

File Upload Problem with WAS 4.0.1

Satheesh Kumar G

Joined: Feb 08, 2003
Posts: 21
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
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Apply fixpack 2 ( This bug was fixed in that fixpack. BTW, you might want to catch up your WebSphere -- the current fixpack is now 5.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Satheesh Kumar G

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

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
I agree. Here's the link:
subject: File Upload Problem with WAS 4.0.1
Similar Threads
PUT method is not working in Tomcat
Problem About Java File Upload
problem with multipart/form-data
how to deploy a servlet into a web server
inputstream reading wrong file when a url is passed.