Results 1 to 4 of 4

Thread: Problem with file upload when the file size gets exceeded

  1. #1

    Unhappy 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.

  2. #2
    Join Date
    Nov 2005
    Location
    Reutlingen, Germany
    Posts
    2,098

    Default

    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

  3. #3

    Default 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

  4. #4
    Join Date
    Feb 2009
    Location
    India
    Posts
    14

    Default

    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
  •