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... | |
acceptance.py | Loading commit data... | |
aws.py | Loading commit data... | |
aws_migrate.py | Loading commit data... | |
bok_choy.auth.json | Loading commit data... | |
bok_choy.env.json | Loading commit data... | |
bok_choy.py | Loading commit data... | |
common.py | Loading commit data... | |
debug_upload.py | Loading commit data... | |
dev.py | Loading commit data... | |
dev_dbperf.py | Loading commit data... | |
dev_with_worker.py | Loading commit data... | |
devstack.py | Loading commit data... | |
microsite_test.py | Loading commit data... | |
test.py | Loading commit data... |