Why can't I upload image files using com.oreilly.servlet.multipart.FilePart?

Alex Chaffee

It's probably a server bug. Make sure you are using the latest version of your servlet container, and check the bug reports. Also, try running your code on a different server (e.g. standalone Tomcat 4.0.1 (not running behind Apache -- see below)) to see if the error still happens.

Known servers/configurations that this is a problem with:

  • iPlanet (fixed in recent versions)
  • Tomcat 4.0 WarpConnector (running behind Apache)

See the forum thread for more information: Why can't I upload image files using com.oreilly.servlet.multipart.FilePart in my servlet (running with Tomcat) ?