Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16759 Moodle 4.1 QA
  3. MDLQA-17153

CLONE - Uploading file respects maximum file size

    XMLWordPrintable

Details

    Description

      Set up:

      • You will need a file smaller than this limit (File 1), and a file larger than this limit (File 2).
      • You will need a user who does not have moodle/course:ignorefilesizelimits (User 1) and one who does (User 2).
      • You will need a course that both users can edit
      • Create an instance of the File System repository, and place both files in the directory that it points to.
      • Set post_max_size and upload_max_filesize in php.ini to something small e.g. 1M.
      1. Log in as User 1
      2. Go to a course and create a File resource.
      3. Attempt to drag-and-drop File 1 on to the Select Files file manager
      4. The file should be attached to the file manager
      5. Click on the file in the file manager and delete it.
      6. Attempt to drag-and-drop File 2 on to the Select Files file manager
      7. You should see the error message "The file File 2 is too large. The maximum size you can upload is XX MB"
      8. Click on the "Add..." icon in the File manager
      9. Using the Upload a file repository, attempt to upload File 1
      10. The file should be attached to the file manager
      11. Click on the file in the file manager and delete it.
      12. Click on the "Add..." icon in the File manager
      13. Using the Upload a file repository, attempt to upload File 2
      14. You should see the error message "The file you tried to upload is too large for the server to process."
      15. Using the File system repository instance you created, attempt to upload File 1
      16. The file should be attached to the file manager
      17. Click on the file in the file manager and delete it.
      18. Click on the "Add..." icon in the File manager
      19. Using the File system repository instance you created, attempt to upload File 2
      20. You should see the error message "The file is larger than the maximum size allowed."
      21. Log out
      22. Log in as User 2
      23. Go to a course and create a File resource.
      24. Attempt to drag-and-drop File 1 on to the Select Files file manager
      25. The file should be attached to the file manager
      26. Click on the file in the file manager and delete it.
      27. Attempt to drag-and-drop File 2 on to the Select Files file manager
      28. You should see the error message "The file File 2 is too large. The maximum size you can upload is XX MB"
      29. Click on the "Add..." icon in the File manager
      30. Using the Upload a file repository, attempt to upload File 1
      31. The file should be attached to the file manager
      32. Click on the file in the file manager and delete it.
      33. Click on the "Add..." icon in the File manager
      34. Using the Upload a file repository, attempt to upload File 2
      35. You should see the error message "The file you tried to upload is too large for the server to process."
      36. Using the File system repository instance you created, attempt to upload File 1
      37. The file should be attached to the file manager
      38. Click on the file in the file manager and delete it.
      39. Click on the "Add..." icon in the File manager
      40. Using the File system repository instance you created, attempt to upload File 2
      41. The file should be attached to the file manager

      Attachments

        1. 09.png
          09.png
          62 kB
        2. 10.png
          10.png
          54 kB
        3. 13.png
          13.png
          66 kB
        4. 14_NoDebug.png
          14_NoDebug.png
          47 kB
        5. 14-OK-- Debug error
          60 kB
        6. 14-OK-- Debug error.jpg
          14-OK-- Debug error.jpg
          60 kB
        7. 15_1.png
          15_1.png
          62 kB
        8. 15_2.png
          15_2.png
          80 kB
        9. 16.png
          16.png
          55 kB
        10. 20_NoDebug.png
          20_NoDebug.png
          60 kB
        11. 20_OK_Debug.png
          20_OK_Debug.png
          78 kB
        12. 25.png
          25.png
          55 kB
        13. 28_Error_different.png
          28_Error_different.png
          53 kB
        14. 30.png
          30.png
          61 kB
        15. 31.png
          31.png
          53 kB
        16. 34.png
          34.png
          61 kB
        17. 35_NoDebug.png
          35_NoDebug.png
          47 kB
        18. 35-OK_Debug.png
          35-OK_Debug.png
          56 kB
        19. 36.png
          36.png
          76 kB
        20. 37.png
          37.png
          53 kB
        21. 40.png
          40.png
          79 kB
        22. 41.png
          41.png
          54 kB

        Issue Links

          Activity

            People

              raquel.ortega@moodle.com Raquel Ortega
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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