Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-18443 Moodle 4.4 QA
  3. MDLQA-18739

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 Large 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 Large 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. image-2024-03-28-10-36-50-261.png
          13 kB
          Luiggi Sansonetti
        2. image-2024-03-28-10-42-49-063.png
          10 kB
          Luiggi Sansonetti
        3. image-2024-03-28-10-45-57-814.png
          14 kB
          Luiggi Sansonetti
        4. image-2024-03-28-10-48-05-483.png
          11 kB
          Luiggi Sansonetti
        5. image-2024-03-28-10-48-50-839.png
          4 kB
          Luiggi Sansonetti
        6. image-2024-03-28-10-50-14-671.png
          8 kB
          Luiggi Sansonetti
        7. image-2024-03-28-10-52-48-859.png
          10 kB
          Luiggi Sansonetti
        8. image-2024-03-28-10-53-00-473.png
          4 kB
          Luiggi Sansonetti
        9. image-2024-03-28-10-53-27-715.png
          9 kB
          Luiggi Sansonetti
        10. image-2024-03-28-10-54-52-555.png
          6 kB
          Luiggi Sansonetti
        11. image-2024-03-28-10-56-22-830.png
          52 kB
          Luiggi Sansonetti
        12. image-2024-03-28-10-56-32-833.png
          4 kB
          Luiggi Sansonetti
        13. image-2024-03-28-10-56-58-716.png
          17 kB
          Luiggi Sansonetti
        14. image-2024-03-28-10-57-13-891.png
          12 kB
          Luiggi Sansonetti
        15. image-2024-03-28-10-58-05-738.png
          10 kB
          Luiggi Sansonetti
        16. image-2024-03-28-11-00-24-546.png
          14 kB
          Luiggi Sansonetti
        17. image-2024-03-28-11-02-06-864.png
          16 kB
          Luiggi Sansonetti
        18. image-2024-03-28-11-03-55-038.png
          12 kB
          Luiggi Sansonetti
        19. image-2024-03-28-11-04-20-765.png
          12 kB
          Luiggi Sansonetti
        20. image-2024-03-28-11-04-38-625.png
          47 kB
          Luiggi Sansonetti

            lsansone Luiggi Sansonetti
            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.