openedx / openedx/openedx-platform

Allow configuring STUDENT_FILEUPLOAD_MAX_SIZE via Site Configuration

Open
#37,907 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

open-source-contribution
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.