Skip to content

Fix: Increase nginx client body size limit for PDF uploads#7

Open
om-hb wants to merge 1 commit intoAKSarav:mainfrom
om-hb:fix/increase_max_file_size
Open

Fix: Increase nginx client body size limit for PDF uploads#7
om-hb wants to merge 1 commit intoAKSarav:mainfrom
om-hb:fix/increase_max_file_size

Conversation

@om-hb
Copy link

@om-hb om-hb commented Feb 3, 2026

Changes:
Added client_max_body_size 50M to nginx.conf to allow file uploads up to 50MB

Problem:
nginx was rejecting PDF uploads larger than the default 1MB limit with a 413 "Request Entity Too Large" error.

Solution:
Configured nginx to accept uploads up to 50MB, which covers most typical PDF file sizes while still providing reasonable protection against excessively large uploads.

Add client_max_body_size 50M to nginx.conf to allow larger file uploads (e.g., PDF files).
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.

1 participant

Comments