File Upload Limit in Staff Graded Assignment (edx-sga) - Files Larger Than 4MB Fail

Hi Open edX Community,

I’m currently facing an issue with uploading files in the “Staff Graded Assignment” (edx-sga) XBlock. While file uploads work fine for smaller files (e.g., under 3MB or so), I’ve noticed that uploads larger than 4MB consistently fail.

The issue seems to be unrelated to the edx-sga UI itself (which works perfectly for smaller files). Files larger than that size just don’t upload successfully, and the platform doesn’t provide clear error messages indicating the problem.

I’ve tried looking into the server configuration, but so far I haven’t pinpointed where the issue lies, and I’m not sure if this is Caddy-specific (I’m using Tutor) or deeper in the platform setup.

I have changed this line in caddyfile (before changing there was 4mb size), but it didn’t work

handle_path /* {
        request_body {
            max_size 50MB
        }
    }

I’d appreciate any pointers or advice on debugging this file size issue. Thanks in advance!

I’m not 100% certain but I think you’re looking for the setting STUDENT_FILEUPLOAD_MAX_SIZE, which defaults to 4000000 (4MB in bytes).

2 Likes