How to Increase the WordPress File Upload Limit on Shared Hosting

The upload limit on my clients shared hosting is a measly 2MB which in this day and age is pretty useless as it wouldn’t allow for uploading of most media files, in particular Audio & Video. There are several workarounds, most of which I tried but the following is the only one that seemed to work for me.

Right-click your desktop and select New – Text Document and copy and paste the following lines into the new file:

upload_max_filesize = 32M
post_max_size = 32M
file_uploads = On

You can change the 32M to whatever you like but don’t go mental. Keep disk space in mind!

Next, save the new file as “php.ini” and upload it to the “wp-admin” folder of your WordPress install via FTP or your hosts File Manager.

If you now navigate to Media – Add New in the WordPress admin, you should see 32MB mentioned as the max file size at the bottom. See below:

Media - Upload