What do you have in your try/catch block?  Whenever asking questions
specific to your code, it is helpful for the list to be able to see the
code.

-----Original Message-----
From: Kishore Kamath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 7:27 AM

I am using the OReilly MultiPartRequest class for implementing the upload
feature in my application. I have limited the upload size to 1MB. The
feature works fine when the files are of size < 1MB. The problem arises when
I try to upload files of sizes > 1MB. I am unable to trap the exception
arising due to this deliberate violation of size restriction.
There is no error message on the server and the message displayed to the
user is "Page cannot be displayed" on IE.

What I had in mind was, when a user tries to upload a file greater than the
specified size I will trap the exception or condition and display a suitable
error message to the user and delete the file if it got uploaded on the
server.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to