Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17385 Moodle 4.2 QA
  3. MDLQA-17741

CLONE - Uploading file respects maximum file size

XMLWordPrintable

      Setup

      • Set post_max_size and upload_max_filesize in php.ini to something small e.g. 1M.
      • Restart your server to ensure the limits take effect.
      • Prepare two files: one that is smaller than the limit you set in the previous steps (Small file), and one that is larger (Large file).
      • Go to Site admin -> Plugins -> Repositories -> File system. Create an instance of the File System repository, and place both files in the directory that it points to.
      • Create a course with a Teacher participant.
      • Note: This test assumes that the Teacher role has upload limitations with moodle/course:ignorefilesizelimits set to disabled.

      Drag and drop (Teacher)

      1. Log in as the Teacher
      2. Go to a course and create a File resource.
      3. Drag-and-drop Small file to the Select Files file manager
      4. CONFIRM the file attaches to the file manager successfully
      5. Click on the file in the file manager and delete it.
      6. Drag-and-drop Small file to the Select Files file manager
      7. CONFIRM you are not able to upload the file.

      Upload a file (Teacher)

      1. Click on the "Add..." icon in the File manager
      2. Using the Upload a file repository, attempt to upload Small file
      3. CONFIRM the file attaches to the file manager successfully
      4. Click on the file in the file manager and delete it.
      5. Click on the "Add..." icon in the File manager
      6. Using the Upload a file repository, attempt to upload Large file
      7. CONFIRM you are not able to upload the file.

      File system instance (Teacher)

      1. Click on the "Add..." icon in the File manager
      2. Using the File system repository instance you created, attempt to upload Small file
      3. The file should be attached to the file manager
      4. Click on the file in the file manager and delete it.
      5. Click on the "Add..." icon in the File manager
      6. Using the File system repository instance you created, attempt to upload Large file
      7. CONFIRM you are not able to upload the file.

      Drag and drop (Admin)

      1. Log in as the Admin
      2. Go to the same course and create a File resource.
      3. Drag-and-drop Small file to the Select Files file manager
      4. CONFIRM the file attaches to the file manager successfully
      5. Click on the file in the file manager and delete it.
      6. Drag-and-drop Small file to the Select Files file manager
      7. CONFIRM you are not able to upload the file.

      Upload a file (Admin)

      1. Click on the "Add..." icon in the File manager
      2. Using the Upload a file repository, attempt to upload Small file
      3. CONFIRM the file attaches to the file manager successfully
      4. Click on the file in the file manager and delete it.
      5. Click on the "Add..." icon in the File manager
      6. Using the Upload a file repository, attempt to upload Large file
      7. CONFIRM you are not able to upload the file.

      File system instance (Admin)

      1. Click on the "Add..." icon in the File manager
      2. Using the File system repository instance you created, attempt to upload Small file
      3. The file should be attached to the file manager
      4. Click on the file in the file manager and delete it.
      5. Click on the "Add..." icon in the File manager
      6. Using the File system repository instance you created, attempt to upload Large file
      7. CONFIRM the file attaches to the file manager successfully

        1. 2023-03-27 17_30_25-.png
          2023-03-27 17_30_25-.png
          11 kB
        2. dd-user1-large-file.png
          dd-user1-large-file.png
          79 kB
        3. dd-user1-small-file.png
          dd-user1-small-file.png
          180 kB
        4. dd-user2-large-file.png
          dd-user2-large-file.png
          104 kB
        5. dd-user2-small-file.png
          dd-user2-small-file.png
          114 kB
        6. error_behaviour.gif
          error_behaviour.gif
          727 kB
        7. repo-user1-large-file.png
          repo-user1-large-file.png
          109 kB
        8. repo-user1-small-file.png
          repo-user1-small-file.png
          79 kB
        9. repo-user2-large-file.png
          repo-user2-large-file.png
          100 kB
        10. repo-user2-small-file.png
          repo-user2-small-file.png
          105 kB
        11. upload-user1-large-file.png
          upload-user1-large-file.png
          107 kB
        12. upload-user1-small-file.png
          upload-user1-small-file.png
          93 kB
        13. upload-user2-large-file.png
          upload-user2-large-file.png
          218 kB
        14. upload-user2-small-file.png
          upload-user2-small-file.png
          90 kB

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

              Created:
              Updated:
              Resolved:

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