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

(tc-58) - ezmultiupload doesn't handle upload_max_filesize and post_max_size limitations

    XMLWordPrintable

Details

    Description

      When i have:
      upload_max_filesize = 3M
      post_max_size = 5M

      and i upload a file with 3.5MB, i have the following message:

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

      I also get a message "all files received"

      If i upload a bigger file that the post_max_size (8M in my test), i get
      "All files received"

      but no file was received or is in the correspondent folder

      NOTE: see close issue http://issues.ez.no/IssueView.php?Id=15376

      Steps to reproduce
      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

        Activity

          People

            unknown unknown
            pcardiga pcardiga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: