-
Bug
-
Resolution: Done
-
Minor
-
None
-
4.2
-
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:
- Drag and drop
- Upload a file
- 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.
- blocks
-
MDLQA-17741 CLONE - Uploading file respects maximum file size
-
- Passed
-