Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77769

Uploading file larger than server allows does not display correct message

XMLWordPrintable

    • MOODLE_402_STABLE

      Discovered while testing MDLQA-17741 by community user and confirmed by myself (with varying levels of error).

      Follow the setup to configure your server with upload and post limits found in the issue MDLQA-17741.

      Follow the set of steps, but pay attention to the steps where you upload a file larger than the server allows.

      User1 = Teacher (respects upload limit of 1mb)
      User2 = Admin (no upload restrictions)

      Small file was ~190kb
      Large file was ~1.9mb

      My dev environment has the server setup with PHP 8.1 and 

      • post_max_size = 1M
      • upload_max_filesize = 1M
        There are 3 types of upload the test covered:
      1. Drag and drop
      2. Upload a file
      3. Using an existing file repository (moodledata/repository/xxxxxx)

      Step #14 fails with spinning wheel (user1, upload file, large file).

      Step #20 soft-fails with a different message than expected, but it is in the same spirit (user1, file repo, large file).

      Step #35 fails with spinning wheel (user2, upload file, large file).

      Step #28 fails with a different message than expected (user2, drag and drop, large file).{}

       

      Main issue is that we are not receiving any feedback on steps #14 and #35 (using the 'Upload a file' in the file picker). This is directly linked to the limitation of post_max_size in the php.ini file. 

        1. dd-user1-large-file.png
          79 kB
          David Woloszyn
        2. dd-user1-small-file.png
          180 kB
          David Woloszyn
        3. dd-user2-large-file.png
          104 kB
          David Woloszyn
        4. dd-user2-small-file.png
          114 kB
          David Woloszyn
        5. repo-user1-large-file.png
          109 kB
          David Woloszyn
        6. repo-user1-small-file.png
          79 kB
          David Woloszyn
        7. repo-user2-large-file.png
          100 kB
          David Woloszyn
        8. repo-user2-small-file.png
          105 kB
          David Woloszyn
        9. upload-user1-large-file.png
          107 kB
          David Woloszyn
        10. upload-user1-small-file.png
          93 kB
          David Woloszyn
        11. upload-user2-large-file.png
          218 kB
          David Woloszyn
        12. upload-user2-small-file.png
          90 kB
          David Woloszyn

            david.woloszyn@moodle.com David Woloszyn
            david.woloszyn@moodle.com David Woloszyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.