[GH-ISSUE #148] [Dockerimage] Can't upload large documents, 413 Request Entitiy too large #114

Closed
opened 2026-02-25 21:31:14 +03:00 by kerem · 3 comments
Owner

Originally created by @frenos on GitHub (Oct 3, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/148

Originally assigned to: @ciur on GitHub.

Bug Description
If you try to upload a document with a lot of pages the upload silently fails. In the browser console you see the /upload POST got 413 Request Entity too large. The document I tried to upload is 10,8Mb, sadly I cant provide the file because of private data.

Expected behavior
The default value should be higher and documentation updated. It would also be great if the frontend tells you if something went wrong. For private installs with trusted users it would also be nice to have an option to set the max-size to 0 (as in disable a maximum)

Desktop (please complete the following information):

  • OS: your docker images
  • Browser: Firefox 81.0
  • Papermerge Version: 1.4.5
Originally created by @frenos on GitHub (Oct 3, 2020). Original GitHub issue: https://github.com/ciur/papermerge/issues/148 Originally assigned to: @ciur on GitHub. **Bug Description** If you try to upload a document with a lot of pages the upload silently fails. In the browser console you see the `/upload` POST got 413 Request Entity too large. The document I tried to upload is 10,8Mb, sadly I cant provide the file because of private data. **Expected behavior** The default value should be higher and documentation updated. It would also be great if the frontend tells you if something went wrong. For private installs with trusted users it would also be nice to have an option to set the max-size to 0 (as in disable a maximum) **Desktop (please complete the following information):** - OS: your docker images - Browser: Firefox 81.0 - Papermerge Version: 1.4.5
kerem 2026-02-25 21:31:14 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ciur commented on GitHub (Oct 3, 2020):

Hi @frenos !
Thank for opening an inssue. This bug has nothing to do with application code, it is because of webserver (application stays behind webserver) misconfiguration (apache web server configuration in case of my docker image).

I will take care of the problem, thank you again for opening the bug!

<!-- gh-comment-id:703129631 --> @ciur commented on GitHub (Oct 3, 2020): Hi @frenos ! Thank for opening an inssue. This bug has nothing to do with application code, it is because of webserver (application stays behind webserver) misconfiguration (apache web server configuration in case of my docker image). I will take care of the problem, thank you again for opening the bug!
Author
Owner

@ciur commented on GitHub (Oct 4, 2020):

modwsgi by default limits max http body size to 10MB. From modwsgi documentation:

 Option  --limit-request-body NUMBER
                        The maximum number of bytes which are allowed in a
                        request body. Defaults to 10485760 (10MB).

@frenos, I will increase that value to 20 MB. Fix will be available in mid October (will be shipped with 1.5).

<!-- gh-comment-id:703207212 --> @ciur commented on GitHub (Oct 4, 2020): modwsgi by default limits max http body size to 10MB. From modwsgi documentation: ``` Option --limit-request-body NUMBER The maximum number of bytes which are allowed in a request body. Defaults to 10485760 (10MB). ``` @frenos, I will increase that value to 20 MB. Fix will be available in mid October (will be shipped with 1.5).
Author
Owner

@ciur commented on GitHub (Oct 12, 2020):

Fix is now available as part of 1.5.0.rc1

<!-- gh-comment-id:706879232 --> @ciur commented on GitHub (Oct 12, 2020): Fix is now available as part of [1.5.0.rc1](https://github.com/ciur/papermerge/releases/tag/v1.5.0.rc1)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#114
No description provided.