Skip to content

Increased importer max file size#1097

Merged
kpsherva merged 2 commits into
CERNDocumentServer:masterfrom
callumlewis05:importer-large-files
Jul 15, 2026
Merged

Increased importer max file size#1097
kpsherva merged 2 commits into
CERNDocumentServer:masterfrom
callumlewis05:importer-large-files

Conversation

@callumlewis05

Copy link
Copy Markdown
Contributor

Changed overlay configuration to allow for the importer to import files up to 1GiB.

Comment thread cds_ils/config.py
# REST_CSRF_ENABLED = False

# Enable larger file uploads for importer - 1GiB
MAX_CONTENT_LENGTH = 1000 * 1024 * 1024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could you cross-check with nginx config in https://gitlab.cern.ch/cds-team/cds-ils-openshift/? if it allows to upload such a big file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made a pr to update it in the nginx config here https://gitlab.cern.ch/cds-team/cds-ils-openshift/-/merge_requests/28

For reference the file size in the issue was 170MB so I thought 1GB was a safe value.

@kpsherva
kpsherva merged commit a6917d1 into CERNDocumentServer:master Jul 15, 2026
2 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.

Importer fails with 413 code on big files "Something went wrong"

2 participants