HW Image Widget example

This is an example of the responsive, user friendly HW Image Widget available for WordPress 3.5 and up. Its free for download from WordPress.org.

Did you know it sports the TinyMCE WYSIWYG editor for the text?


Development by Håkan Wennerberg

WordPress media upload error

You are using Nginx as your web server. When uploading large files to the media library you get an “HTTP Error” message. When switching to the old fallback uploader you get “413 Request Entity Too Large”.

The file data being posted is too large for current Nginx (and possibly PHP) settings.

First of all you need to check you php.ini file that it allows the large file to be posted. Check the post_max_size and upload_max_filesize so both values are higher then the file you are trying to upload.

Then add or update the client_max_body_size setting in your /etc/nginx/nginx.conf or server block to a value high enough:

client_max_body_size 64M;

Finally make sure to restart Nginx and possibly PHP if you are running PHP-FPM.

Written by Håkan Wennerberg

Håkan (also known as PuffyThePirateBoy) is a systems architect based in Lundsbrunn, Sweden. Currently focusing on web development, Håkan is passionate about all aspects of web engineering ranging from back-end system infrastructure to front-end UX.

Outside of work, Håkan has a (slight) obsession about motorcycles and constantly trying to figure out how to get money for a bike, and what model it should be :)


Feel free to leave a comment using the form below.

Leave a Comment

Your email address will not be published. Required fields are marked *