Skip to content

Fix upload limit. Fixes #3156#3174

Merged
mlodic merged 8 commits intointelowlproject:developfrom
xrhstoskap:fix_upload_limit
Jan 27, 2026
Merged

Fix upload limit. Fixes #3156#3174
mlodic merged 8 commits intointelowlproject:developfrom
xrhstoskap:fix_upload_limit

Conversation

@xrhstoskap
Copy link
Contributor

@xrhstoskap xrhstoskap commented Jan 6, 2026

Description

Fix large file upload failures caused by mismatched backend limits.

This PR fixes an issue where file uploads larger than 50MB would silently fail.
Although nginx was configured to allow uploads up to 100MB, Django backend settings
(DATA_UPLOAD_MAX_MEMORY_SIZE and FILE_UPLOAD_MAX_MEMORY_SIZE) were limited to 50MB,
causing requests to be rejected before processing.

Fixes #3156


What changed

  • Increased DATA_UPLOAD_MAX_MEMORY_SIZE
  • Increased FILE_UPLOAD_MAX_MEMORY_SIZE
  • Aligned Django backend upload limits with the nginx configuration (100MB)

Type of change

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist

  • I have read and understood the rules about how to Contribute to this project
  • The pull request is for the branch develop
  • Linters (Black, Flake, Isort) gave 0 errors.
  • I have added tests for the feature/bug I solved (see tests folder).

Notes

  • This change only affects backend upload limits.
  • No impact on existing APIs or plugin behavior.
  • Successfully tested by uploading and processing a ~75MB file.

@fgibertoni
Copy link
Contributor

Hey, please read the full contribution guidelines and adjust the PR accordingly, thanks.

@xrhstoskap xrhstoskap changed the base branch from master to develop January 7, 2026 13:23
@xrhstoskap xrhstoskap changed the title Fix upload limit Fix upload limit. Fixes #3156 Jan 7, 2026
@xrhstoskap
Copy link
Contributor Author

could you please review again!

Copy link
Member

@mlodic mlodic left a comment

Choose a reason for hiding this comment

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

you need to keep the PR template, compile it and show proof that this change works.

DATA_UPLOAD_MAX_MEMORY_SIZE = 50 * (10**6)
FILE_UPLOAD_MAX_MEMORY_SIZE = 50 * (10**6)
DATA_UPLOAD_MAX_MEMORY_SIZE = 100 * 1024 * 1024
FILE_UPLOAD_MAX_MEMORY_SIZE = 100 * 1024 * 1024
Copy link
Member

Choose a reason for hiding this comment

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

why change from exponential? keep it consistent please

@xrhstoskap
Copy link
Contributor Author

fixed the consistency, if the code is run to the docker, it must work correctly

@mlodic
Copy link
Member

mlodic commented Jan 17, 2026

you still didn't provide proof of this working as expected, "it must work" doesn't mean anything.

@github-actions
Copy link

This pull request has been marked as stale because it has had no activity for 10 days. If you are still working on this, please provide some updates or it will be closed in 5 days.

@github-actions github-actions bot added the stale label Jan 27, 2026
@mlodic mlodic merged commit 522df38 into intelowlproject:develop Jan 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problems with uploads of big files

4 participants