JK2 ISAPI between IIS and Tomcat 5 has file upload bug? 2004-01-16 - By Allistair Crossley
Back 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/upload.do it works fine
If I post a file through our IIS -> JK2 -> Tomcat method, e.g http://server /upload.do 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 { logger.info("parsing multipart form request"); items = upload.parseRequest(request); } catch (FileUploadException fuE) { logger.error(fuE.getMessage()); break DO_CHECKIN; }
<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- </FONT>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|