question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image upload system does not catch errors caused by exceeding webserver maximum filesize/POST-size

See original GitHub issue

We’ve experienced these errors one of our staging servers when the user tried to upload a 4MB image.

2014/09/10 09:46:33 [error] 27068#0: *86706 client intended to send too large body: 4405744 bytes, client: ...

The result of which is the image upload system falling back to its most default error message, “An error occurred”. This needs addressing to improve this useless message and to avoid us repeatedly troubleshooting this for other people.

Wagtail’s image features are all about high quality images so it seems likely that user would be eager to have large original image files and would therefore encounter file size limits, whatever they are, regularly.

Ideally wagtail would somehow be made aware of the server’s filesize/post limits. Failing that, the implementer would define a settings entry relating to filesize which merely duplicated the underlying server’s limits. Perhaps by setting this low enough and commenting suitably, implementers would be more likely to remember to raise the limit.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gasmancommented, Jan 3, 2018

@prokaktus Thanks for the report! I can confirm that the error report no longer appears on recent Wagtail versions - it seems that this was inadvertently dropped in #2538. Have now opened #4163 to fix this.

0reactions
prokaktuscommented, Dec 23, 2017

I have feeling, that this logic become broken somehow. Because now when I stucked with this problem (my Nginx was configured with max size of 1mb), nothing was shown to me.

No errors were reported by Image Uploader: No errors were reported by Image Uploader

Read more comments on GitHub >

github_iconTop Results From Across the Web

System Manager upload fails error "File not uploaded." File ...
System Manager upload fails error "File not uploaded." File may exceeds the max size of 2048M or there is insufficient space."
Read more >
Fix the WordPress Error: "Post-Processing of the Image Failed ...
“Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploaded a smaller image may help....
Read more >
Fixing errors when uploading images in WordPress
HTTP error When Uploading Image; Unable to create directory and broken images in the Media Library; File exceeds the upload_max_filesize.
Read more >
How to Fix the uploaded file exceeds the upload_max_filesize ...
A step-by-step guide for how to fix the "the uploaded file exceeds the upload_max_filesize directive in php.ini" error in WordPress.
Read more >
How to Fix Post-Processing of Image Failed Error in WordPress
'Post-processing of the image likely failed because the server is busy or does not have enough resources. Uploading a smaller image may help....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found