Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15376

ezmultiupload doesn't handle upload_max_filesize and post_max_size limitations

    Details

      Description

      Hi

      ezmultiupload does not seem to handle the case where upload_max_filesize or post_max_size limits are reached.

      If you breach upload_max_filesize you'll get an error message instead of a thumbnail displaying :

          *  A file is required for upload, no file were found.
          * No HTTP file found, cannot fetch uploaded file.
      

      You should instead get a message hiting what the problem is.
      You'll also get message "all files received"

      If you breach post_max_size, you'll get no warning at all that something went wrong. However, the thumbnail for the file will not be shown at all

      Steps to reproduce

      tc-58:Upload file which is larger than upload_max_filesize but smaller that post_max_size:

      Check pre requirements
       
         1. Ensure that PHP on the server is configured so that upload_max_filesize is smaller than post_max_size
         2. Recommended settings is:
            upload_max_filesize = 3M
            post_max_size = 5M
       
      Upload a file larger than upload_max_filesize
       
         1. Log in to ezwebin as admin
         2. Click on "Gettings started" in top menu
         3. Create a new folder named "Files"
         4. Click on "Files" menu item which should appear in left menu
         5. Click on "MultiUpload" icon in webin toolbar
         6. Click "Select files" button
         7. Select 1 file from you local hard drive which is larger than upload_max_filesize, but smaller than post_max_size
         8. Select 1 file which is smaller than upload_max_filesize
         9. Click "Ok" button (Name of button might differ, dependent on browser/operating system)
       
      Verify that the condition is handled gracefully
       
         1. Verify that you did not get a message like "All files received"
         2. Verify that you are given a list of which files where failing
         3. Verify that you get a message indication what the problem is
      

      tc-59:Upload file which is larger than upload_max_filesize and post_max_size

      Check pre requirements
       
         1. Learn the value for the upload_max_filesize and post_max_size setting in PHP on the testsystem
         2. Recommended settings is:
            upload_max_filesize = 3M
            post_max_size = 5M
       
      Upload a file larger than post_max_size
       
         1. Log in to ezwebin as admin
         2. Click on "Gettings started" in top menu
         3. Create a new folder named "Files"
         4. Click on "Files" menu item which should appear in left menu
         5. Click on "MultiUpload" icon in webin toolbar
         6. Click "Select files" button
         7. Select 1 file from you local hard drive which is larger than post_max_size
         8. Select 1 file which is smaller than both upload_max_filesize and post_max_size
         9. Click "Ok" button (Name of button might differ, dependent on browser/operating system)
       
      Verify that the condition is handled gracefully
       
         1. Verify that you did not get a message like "All files received"
         2. Verify that you are given a list of which files where failing
         3. Verify that you get a message indication what the problem is
      
      

        Issue Links

          Activity

          Hide
          Paulo Nunes (Inactive) added a comment -

          The issue still occurs.

          Show
          Paulo Nunes (Inactive) added a comment - The issue still occurs.
          Hide
          Joao Pingo (Inactive) added a comment -

          Adding a file bigger than post_max_size does not show any warning

          Upload a file larger than post_max_size

          1. Log in to ezwebin as admin
          2. Create a new folder "Getting started"
          3. Click on "Gettings started" in top menu
          4. Create a new folder named "Files"
          5. Click on "Files" menu item which should appear in left menu
          6. Click on "MultiUpload" icon in webin toolbar
          7. Click "Select files" button
          8. Select 1 file from you local hard drive which is larger than post_max_size
          9. Click "Ok"

          No error/warning is shown, the file is not uploaded

          Show
          Joao Pingo (Inactive) added a comment - Adding a file bigger than post_max_size does not show any warning Upload a file larger than post_max_size 1. Log in to ezwebin as admin 2. Create a new folder "Getting started" 3. Click on "Gettings started" in top menu 4. Create a new folder named "Files" 5. Click on "Files" menu item which should appear in left menu 6. Click on "MultiUpload" icon in webin toolbar 7. Click "Select files" button 8. Select 1 file from you local hard drive which is larger than post_max_size 9. Click "Ok" No error/warning is shown, the file is not uploaded
          Hide
          Paulo Nunes (Inactive) added a comment - - edited

          Same resul as João.
          When uploading a file larger than upload_max_filesize but smaller that post_max_size, the file is uploaded, but i have the message that can be seen in the attached image.

           
          Error
           
              The uploaded file size is above the maximum limit.
              No HTTP file found, cannot fetch uploaded file.
          
          

          Show
          Paulo Nunes (Inactive) added a comment - - edited Same resul as João. When uploading a file larger than upload_max_filesize but smaller that post_max_size, the file is uploaded, but i have the message that can be seen in the attached image.   Error   The uploaded file size is above the maximum limit. No HTTP file found, cannot fetch uploaded file.
          Hide
          Paulo Nunes (Inactive) added a comment -

          Same issue in 5.2-RC1
          Currently the files are not uploaded. The load line just hangs without any information. See screenshot 5.2-rc1 in IE10.png in attach

          Show
          Paulo Nunes (Inactive) added a comment - Same issue in 5.2-RC1 Currently the files are not uploaded. The load line just hangs without any information. See screenshot 5.2-rc1 in IE10.png in attach
          Hide
          Joao Pingo (Inactive) added a comment -

          Tested in certification for 5.3
          There is no message on browser as described before but in apache debug you get the following warning

          [Tue Apr 01 08:34:49 2014] [error] [client 192.168.2.50] PHP Warning:  POST Content-Length of 9071204 bytes exceeds the limit of 5242880 bytes in Unknown on line 0

          Show
          Joao Pingo (Inactive) added a comment - Tested in certification for 5.3 There is no message on browser as described before but in apache debug you get the following warning [Tue Apr 01 08:34:49 2014] [error] [client 192.168.2.50] PHP Warning: POST Content-Length of 9071204 bytes exceeds the limit of 5242880 bytes in Unknown on line 0

            People

            • Assignee:
              Unassigned
              Reporter:
              Vidar Langseid
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: