Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-17933 Moodle 4.3 QA
  3. MDLQA-18245

CLONE - Uploading file respects maximum file size

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              meowmiomew Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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