This commit puts a limit on the size of files that course staff can upload to MongoDB. The limit is enforced on the frontend in javascript as well as backend via the /upload endpoint. The limit is hard-coded in cms/envs/common.py and may be changed according to the user's custom needs. If the user tries to upload a file that's too large, an error message will pop up, with a customizable url that pointing the user to an external page with an alternate upload procedure. This url is specified im cms/envs/common.py. If not set, this url will not be displayed.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
__init__.py | Loading commit data... | |
test_access.py | Loading commit data... | |
test_assets.py | Loading commit data... | |
test_checklists.py | Loading commit data... | |
test_container_page.py | Loading commit data... | |
test_course_index.py | Loading commit data... | |
test_course_updates.py | Loading commit data... | |
test_group_configurations.py | Loading commit data... | |
test_helpers.py | Loading commit data... | |
test_import_export.py | Loading commit data... | |
test_item.py | Loading commit data... | |
test_preview.py | Loading commit data... | |
test_tabs.py | Loading commit data... | |
test_textbooks.py | Loading commit data... | |
test_transcripts.py | Loading commit data... | |
test_unit_page.py | Loading commit data... | |
test_user.py | Loading commit data... | |
utils.py | Loading commit data... |