With reasonably recent versions of TC 4.1.x (or 5.0.x), either throwing an
IOException from the servlet, or (better) setting the Response status code
to 413 (Request Entity too large) will cause Tomcat to drop the connection
to the browser (nicely if possible, otherwise rudely :).

"Mark W. Webb" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have the ability to upload files using a servlet.  I also enforce file
> size constraints, so people do not upload files that are too large.  The
> problem is, that I cannot figure out how to determine the file size
> without uploading the file first.  I could get the contentLength from
> the request, but won't things get messed up because the browser will
> have already started writing the data to tomcat/apache?  Could I just
> close the ServletInputStream?
>
> thank you.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to