-
Functional Test
-
Moodle 2.5
-
None
Test Pre-requisites:
- A Database activity with a file field and a picture field.
Test Steps:
- Login as a teacher, navigate to the Database activity, Click the Fields tab and update the file field.
- Set the maximum size to "Course upload limit".
- Login as a Student and navigate to the Database activity. Select the Add an entry tab.
- Click 'Choose a file' and verify that File picker is displayed.
- Select 'Upload a file', choose a file to upload and upload it.
- Click 'Save and view' and verify that the files have been uploaded.
- Download the file to verify that the file link has been created properly.
- Login as a Teacher and download the file, then verify that the file is correct.
- Navigate to the Database activity.
- Click the fields tab and follow steps 2 and 3, but set the Maximum size to something lower than the course upload limit.
- Follow steps 3 onwards with the new setting.
- will be (partly) resolved by
-
MDL-39118 Database file upload fails when file limit is set to course upload limit
- Closed