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