2 Replies Latest reply on Jul 24, 2013 9:32 AM by Jovan Mihaljica

    Problems with big files in file upload

    Jovan Mihaljica Newbie



      Environment: JBoss 7.1.3 AS


      During 'regular' file upload, using Apache commons file upload library, when very large file is uploaded (maximum size is set to 2MB), appropriate exception is raised almost imediatelly, but request isn't interrupted, upload still hangs and it seems that whole file is uploaded anyway. Even though I loose couple of days trying to find the reason why, I'm not sure if there are some settings which need to be configured in JBoss, some known bug, or something else. I want to solve the problem solely on the server side, without any client validation using HTML 5 File API or Flash. Any help is more than appreciated.


      Thanks in advance.



        • 1. Re: Problems with big files in file upload
          jaikiran pai Master

          Jovan, welcome to the forums.


          This looks more like an application problem than anything to do with JBoss AS (now known as WildFly) server. You might have to take a look at the application code to understand it better.

          • 2. Re: Problems with big files in file upload
            Jovan Mihaljica Newbie

            Hi. Thanks for answer.


            Spring MVC CommonsMultipartResolver is used to resolve multipart files and there is no custom made file upload application code. During the file upload it is verified that FileUploadBase.SizeLimitExceededException is thrown when data read from the request input stream crosses defined treshold, and then wrapped in MaxUploadSizeExceededException (stack trace is indeed logged to the output). Request is not interrupted and still hangs. Maybe it's not issue with the server itself, I read that browser can still keeping connection alive until data is uploaded to the server and I cannot believe that in the 21st century file upload still represents mystery.