> I just re-wrote the O'Reilly stuff to throw an exception of my own
> creation (SizeTooBigException or something like that).
>
> It is very easy to do... I can sedn you what I did if you want.

If it allows the servlet to continue and process all of the form fields and
just have the uploaded file rejected, I think we'd all like to see the code.
Since it's a multipart message, you'd have to process all parts and simple
reject the upload of large files.

Also, when I ran that class on JRun some time back, I noted that the
exception was thrown only after all of the data was uploaded to my server.
This seemed to defeat the purpose, which was to reject overly long
transmissions.  Does anybody know if this is just a requirement of servlets,
in that the entire HttpServletRequest must be uploaded and fully stored in
that object before the servlet is called?  That sounds reasonable, but I'm
not sure if that's the case, or whether the servlet has some control over
reading the actual TCP socket so that it can terminate a large upload before
everything is sent to the server.

David


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

Reply via email to