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

**URL:** <https://discuss.openedx.org/t/file-upload-limit-in-staff-graded-assignment-edx-sga-files-larger-than-4mb-fail/15563>\
**Category:** Site Operators\
**Created:** [April 18, 2025, 2:51pm UTC](https://discuss.openedx.org/t/file-upload-limit-in-staff-graded-assignment-edx-sga-files-larger-than-4mb-fail/15563 "2025-04-18T14:51:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueundefined](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/blueundefined/32/7985_2.png) [@blueundefined](https://discuss.openedx.org/u/blueundefined)\
**Post date:** [April 18, 2025, 2:51pm UTC](https://discuss.openedx.org/t/file-upload-limit-in-staff-graded-assignment-edx-sga-files-larger-than-4mb-fail/15563/1 "2025-04-18T14:51:22Z")

</div>

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

```auto
handle_path /* {
        request_body {
            max_size 50MB
        }
    }

```

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

---

<div class="post-metadata">

**Author:** ![rhysyngsun](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/rhysyngsun/32/5350_2.png) [@rhysyngsun](https://discuss.openedx.org/u/rhysyngsun)\
**Post date:** [April 18, 2025, 7:58pm UTC](https://discuss.openedx.org/t/file-upload-limit-in-staff-graded-assignment-edx-sga-files-larger-than-4mb-fail/15563/2 "2025-04-18T19:58:04Z")

</div>

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).
