Skip to content

CORE-2095: fix a problem with HTTP 413 status codes being returned when saving large files.#642

Merged
slr71 merged 3 commits intocyverse-de:mainfrom
slr71:main
Nov 4, 2025
Merged

CORE-2095: fix a problem with HTTP 413 status codes being returned when saving large files.#642
slr71 merged 3 commits intocyverse-de:mainfrom
slr71:main

Conversation

@slr71
Copy link
Member

@slr71 slr71 commented Nov 3, 2025

Before this change, a 413 error would occur any time a user was using the editor feature in the DE to modify and save a file that is more than approximately 100kb in size because the default maximum request body size for express.js is 100kb. This value is configurable, so the solution is to specify it when loading express.js. The default maximum file size supported by the editor in the DE is 8mb, so the maximum request body size should be a little bit larger than that.

For this change, I chose to make the default maximum request body size 10mb and to make it configurable just in case we need to modify it.

Copy link
Member

@psarando psarando left a comment

Choose a reason for hiding this comment

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

LGTM :shipit: 👍

@slr71
Copy link
Member Author

slr71 commented Nov 4, 2025

Thanks for the review! 👍

@slr71 slr71 merged commit b415b67 into cyverse-de:main Nov 4, 2025
3 checks passed
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.

2 participants

Comments