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 |
---|---|---|
.. | ||
tests | Loading commit data... | |
__init__.py | Loading commit data... | |
access.py | Loading commit data... | |
assets.py | Loading commit data... | |
checklist.py | Loading commit data... | |
component.py | Loading commit data... | |
course.py | Loading commit data... | |
dev.py | Loading commit data... | |
error.py | Loading commit data... | |
export_git.py | Loading commit data... | |
helpers.py | Loading commit data... | |
import_export.py | Loading commit data... | |
item.py | Loading commit data... | |
preview.py | Loading commit data... | |
public.py | Loading commit data... | |
session_kv_store.py | Loading commit data... | |
tabs.py | Loading commit data... | |
transcripts_ajax.py | Loading commit data... | |
user.py | Loading commit data... | |
xblock.py | Loading commit data... |