-
Jun 5th, 2007, 05:49 AM
#1
Problem with file upload when the file size gets exceeded
When i am trying to upload a file, if the file size gets exceeded more than 5 MB, then i am getting the error ,
"page cannot be displayed" . Can anybody please help me out in fixing this issue. I am uploading the file using "FILEUPLOADBEAN" in servlets.
Thanks in Advance.
-
Jun 5th, 2007, 11:11 AM
#2
What do you expect to happen? There is a maxUploadSize property for CommonsMultipartResolver resulting in a MaxUploadSizeExceededException when the size of the uploaded file is bigger than this value. By default this property is -1 meaning no limit.
Jörg
-
Jun 6th, 2007, 01:27 AM
#3
Problem with file upload when the file size gets exceeded
Hi Jorg,
I just want to display a meaningful message, when the uploaded file exceeds the max size limit. Say, my max file size limit is 5 MB. If i try to upload a file of size 6 MB , it should throw a meaningful exception to the user that the file size limit has been exceeded .
So, could you please suggest any solution for this.
Thanks a tonn.
Pavan
-
May 14th, 2009, 07:01 AM
#4
hi Pavan...have u resolved this problem?
If u succeed then could share it here...
shall be very thankful to u.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules