- Log in as a teacher, turn editing on in the course and add a new database activity.
- Create a file field.
- Set the maximum size to the site or course upload limit.
- In the templates tab, save the single and list templates.
- Log in as a student and try adding an entry to the database.
- Click 'Add...' on the file field and check that the file picker is displayed.
- Select 'Upload a file', choose a file to upload and upload it.
- Click 'Save and view' and check that the file has been uploaded correctly.
- Try downloading the file.
- Log in as the teacher again, update the database activity and set the maximum size lower.
- Log in as the student again and check that the maximum file size is stated correctly on the add entry page.
- has been marked as being related by
MDL-24597 Database activity module: Create default templates when creating activity