openedx / openedx/openedx-platform
Allow configuring STUDENT_FILEUPLOAD_MAX_SIZE via Site Configuration
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.2k
- Forks
- 4.4k
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 42
Description
Problem
STUDENT_FILEUPLOAD_MAX_SIZE is currently read directly from Django settings when validating file uploads in XBlock handlers.
Proposal
Read STUDENT_FILEUPLOAD_MAX_SIZE from Site Configuration using configuration_helpers.get_value, with a fallback to the existing Django setting when no site-specific value is defined.
Use this value consistently when validating uploaded file sizes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the XBlock handlers that validate uploaded file sizes and inspect how they currently read STUDENT_FILEUPLOAD_MAX_SIZE from Django settings. Follow the existing configuration_helpers.get_value usage, then verify that validation consistently uses the site-specific value and falls back to the Django setting when no site value is defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100