Skip to:

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#5752 closed defect (bug) (worksforme)

Nginx error "413 Request Entity Too Large" while trying to upload large (several megabytes) group avatars

Reported by: jreeve's profile jreeve Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Media Keywords: reporter-feedback


Buddypress seems to be able to handle error messages for attempts to upload group avatars that are too large (bp-core-avatars.php:577), yet when I test this, I get the Nginx error "413 Request Entity Too Large."

To reproduce: try to upload a group avatar that's too large (I tried a 10M image file) and see if it breaks.

Change History (5)

#1 @DJPaul
10 years ago

  • Component changed from Core to Avatars
  • Keywords reporter-feedback added

In your Nginx, what's the value of the client_max_body_size option?

#2 @DJPaul
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

I am closing because we haven't heard from the original reporter in 3 weeks (and we need more details). I suspect this is just a web server configuration change that's needed.

#3 @jreeve
10 years ago

Sorry for the late response--I need to remember to add myself as a subscriber to these tickets. It looks like client_max_body_size is 4m. That's probably the issue. I'll just try to remember to set this value to be high enough so that the error message comes from BP and not from Nginx. Thanks!

#4 @DJPaul
10 years ago

Cool -- if you increase that and the issue persists (and your image size is smaller than the new limit), ping us again and we can look into it more. Thanks.

#5 @DJPaul
8 years ago

  • Component changed from API - Avatars to Media
Note: See TracTickets for help on using tickets.