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

    XMLWordPrintable

    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
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: