Announcement Announcement Module
Collapse
No announcement yet.
Problem with file upload when the file size gets exceeded Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #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

      Comment


      • #4
        hi Pavan...have u resolved this problem?

        If u succeed then could share it here...

        shall be very thankful to u.

        Comment

        Working...
        X