# Admin or teacher can enable or disable the file submission and can limit maximum file size

## Description:

Students may upload attachments for assignment submissions if enabled by the teacher, up to the maximum file size limit set by the teacher.

## Step-by-Step Procedure:

1. Login as admin.
2. Click on "Courses."
3. Click on the "+ Course" button.
4. Click on the "Add a new course" button.
5. Enter a course name.
6. Click on the "Description" field.
7. New text block appears.
8. Enter the description.
9. Click on the "Done" button.
10. Click "Save" button to save the course.
11. Click on the "Courses"
12. Click on the course name.
13. Click on the "Members" tab.
14. Click on the "Add a teacher" button
15. Click on "Add a new person" button
16. Enter the teacher's first name, last name and Gender.
17. Click on the "Save" button and save the person details.
18. Click on the "Save" button to save the enrollment details.
19. Click on the teacher name.
20. Click on the "View profile" button.
21. Click on the "Create account" button.
22. Enter the username.
23. Enter the password.
24. Click on the "Save button"
25. Click on "People".
26. Click on "+ Person" button.
27. Click on "Bulk import" button.
28. Click on "Select file" button.
29. Select the csv file.
30. Click on "Import"
31. Verify the import success message.
32. Clear the app storage
33. Login to the app using the teacher username and password.
34. Click on "Courses" tab.
35. Click on the course name.
36. Click on "Edit" button.
37. Click on "Add block" button
38. Click on "Assignment".
39. Enter the assignment title in the "Title" field.
40. Enter the assignment description in the "Description" field.
41. Verify the "Require file submission" switch is on
42. Set the "Size limit(MB)" from 50 to 10 
43. Set the submission policy to "Must submit all at once". 
44. Click on the "Done" button. 
45. Click on the "Save" button. 
46. Clear the app storage 
47. Login to the app using the student username and password. 
48. Click on "Courses" tab. 
49. Click on the course name.
50. Click on the assignment added by teacher. 
51. Enter the assignment text in the provided text field. 
52. Click on "Add file" button. 
53. Select the file of size 30 MB 
54. User gets error message "File size is too big". 
55. Click on "Add file" button. 
56. Select the file of size 5 MB. 
57. Click on the "Submit" button. 
58. Verify the submit status changed to "Submitted". 
59. Clear the app storage 
60. Login to the app using the teacher username and password. 
61. Click on "Courses" tab. 
62. Click on the course name. 
63. Click on the assignment. 
64. Click on the "Submissions" tab. 
65. Click on the specific student's name.
66. Review the submitted text 
67. Open the submitted file. 
68. Click on "Mark" field. 
69. Enter the mark 
70. Click on the "Submit grade" button.