WordPress http error when uploading image or video?

WordPress http error when uploading image or video?

If you are uploading images in WordPress and you get the “http error”, you can try a few things.

First of all, you can edit the wp-config.php file and add:
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

somewhere in the code.

Save the file and upload it.

Overall, this error happens when you try to upload an image file that is too big for the server to handle.
Let’s say that the image has a 4k resolution and 3-4 MB size.

The server will not be able to convert the image while the upload is taking place, and it will return that error.

That is why you can first resize your image in Adobe Photoshop or a similar program, save it with a decent size (300-400-500kb), then upload it in WordPress.

Add a comment: