Hello All:
I am using RedHat 6.1 on an Intel Box with Apache 1.3 and Jserv 1.1.
I am doing a file upload. However I wish to stop the upload if the user
exceeds the maximum file upload limit. It is very straight forwardto
detect
when the upload length exceeds the maximum allowable. When I detect
this situation I throw an exception and do a close on the
ServletInputStream.
However the browser-( both IE and Netscape do this)-still sends data. If
the
file is 245 Megs in size, it will have to send all 245 Megs before the
client stops. It, the browser, will then stop and then it will receive
the message that
the upload limit is exceeded.
Is there any way to:
i) Stop the browser from sending the data
OR
ii) Closing get at the socket that the Browser is writing to. I assume
this socket is opened
up in Apache. Is there any module that links JServ to the underlying
Apache socket software
so that a close on the ServletInputStream also causes the socket in
Apache to be closed. I have
seen this question asked before but I never saw a definitive answer.
Does Tomcat address
any of these issues.
Thank you in advance,
west suhanic
--
----------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]