tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <>
Subject JK2 ISAPI between IIS and Tomcat 5 has file upload bug?
Date Fri, 16 Jan 2004 11:41:41 GMT
Hi Guys,

I am using Commons File Uploader to post a file to my Struts app running on TC 5.

If I post a file upload to Tomcat directly, e.g http://server:8080/ it works fine

If I post a file through our IIS -> JK2 -> Tomcat method, e.g http://server/
it fails with a "Stream terminated unexpectedly".

The code below is what I am doing - this is not at fault .. it seems to be going through IIS
that is killing my upload..

if (FileUpload.isMultipartContent(request)) {
  DiskFileUpload upload = new DiskFileUpload();
  List items = null;
  try {"parsing multipart form request");
    items = upload.parseRequest(request);
  } catch (FileUploadException fuE) {
    break DO_CHECKIN;

QAS Ltd.
Developers of QuickAddress Software
<a href=""></a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message