diff --git a/edx_sga/sga.py b/edx_sga/sga.py index 9ddbbc70..51f1f5a8 100644 --- a/edx_sga/sga.py +++ b/edx_sga/sga.py @@ -86,7 +86,17 @@ class StaffGradedAssignmentXBlock( has_score = True icon_class = "problem" - STUDENT_FILEUPLOAD_MAX_SIZE = 4 * 1000 * 1000 # 4 MB + # .. setting_name: STUDENT_FILEUPLOAD_MAX_SIZE + # .. setting_default: 4 * 1000 * 1000 #4MB + # .. setting_description: Specifies the file size that the Student + # can upload via the Component. If not + # specified the default is 4MB. + # .. setting_example: { + # STUDENT_FILEUPLOAD_MAX_SIZE: 20 * 1000 * 1000 #20MB + # } + STUDENT_FILEUPLOAD_MAX_SIZE = getattr(settings, + "STUDENT_FILEUPLOAD_MAX_SIZE", + 4 * 1000 * 1000) editable_fields = ("display_name", "points", "weight", "showanswer", "solution") display_name = String(