Wordpress: Unable to upload photo to the Media Library with HTTP error

Created on 26 Jan 2016  路  3Comments  路  Source: docker-library/wordpress

I am unable to upload a photo to the Media Library on a wordpress docker container.

The upload progress bar was moving, but at the end, I am taken to a screen with an error like so:

photo-1447752875215-b2761acb3c5d.png
HTTP error.

I have tried deactivating all plugins to see if anything is interfering with it, but that didn't solve the issue.

Has anyone run into this issue before/ know how to solve it? It feels like some sort of file permission or security constraint to me.

Most helpful comment

I get that when running behind nginx-proxy. Make sure your upload limits are set high enough.

All 3 comments

I get that when running behind nginx-proxy. Make sure your upload limits are set high enough.

That's a good suggestion @dawnerd. Any idea on how to set the upload limits with nginx?

I just tried with client_max_body_size 1000m; and that seems to have fixed the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danyork picture danyork  路  4Comments

TeachMeHowToUse2FA picture TeachMeHowToUse2FA  路  4Comments

mvasin picture mvasin  路  4Comments

shankie-codes picture shankie-codes  路  5Comments

haszari picture haszari  路  4Comments