Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
frenos opened this issue Oct 3, 2020 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@frenos
Copy link
Contributor

frenos commented Oct 3, 2020

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
@frenos frenos added the bug Something isn't working label Oct 3, 2020
@ciur
Copy link
Owner

ciur commented 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!

@ciur
Copy link
Owner

ciur commented 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).

@ciur
Copy link
Owner

ciur commented Oct 12, 2020

Fix is now available as part of 1.5.0.rc1

@ciur ciur closed this as completed Oct 12, 2020
ibiBgOR pushed a commit to ibiBgOR/papermerge that referenced this issue Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants