Skip to content

Conversation

@amits-2u
Copy link
Contributor

JIRA: https://2u-internal.atlassian.net/browse/DOS-6385

Image uploads were failing with “Content too large” errors for files slightly above 1MB.

Although global LMS and CMS NGINX upload limits are higher, the LMS NGINX configuration enforces a stricter, endpoint-level limit for profile image uploads via the EDXAPP_PROFILE_IMAGE_MAX_BYTES setting. This resulted in uploads being rejected before reaching the application.

This change increases EDXAPP_PROFILE_IMAGE_MAX_BYTES from 1MB to 2MB, allowing slightly larger image uploads while preserving the existing endpoint-level protection.

Copilot AI review requested due to automatic review settings December 15, 2025 06:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases the LMS profile image upload size limit from 1MB to 2MB to resolve "Content too large" errors for image uploads slightly above 1MB. The change updates the EDXAPP_PROFILE_IMAGE_MAX_BYTES setting, which controls the NGINX endpoint-level upload limit for profile images.

Key Changes

  • Updated EDXAPP_PROFILE_IMAGE_MAX_BYTES from 1048576 (1MB) to 2097152 (2MB)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


# In bytes
EDXAPP_PROFILE_IMAGE_MAX_BYTES: 1048576
EDXAPP_PROFILE_IMAGE_MAX_BYTES: 2097152
Copy link

Copilot AI Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The EDXAPP_PROFILE_IMAGE_MAX_BYTES value has been updated to 2097152 (2MB) in this file, but the corresponding PROFILE_IMAGE_MAX_BYTES setting in docker/build/edxapp/lms.yml is still set to the old value of 1048576 (1MB). This inconsistency could cause profile image uploads to fail in Docker-based deployments while working in other environments. Consider updating docker/build/edxapp/lms.yml line 454 to match this change.

Copilot uses AI. Check for mistakes.
@amits-2u amits-2u merged commit a18f066 into master Dec 15, 2025
3 checks passed
@amits-2u amits-2u deleted the amits-2u/DOS-6385-xblock-max-upload-size branch December 15, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants