Cannot upload theme file to WordPress – Increase Max Upload File Size in WordPress

Sometimes you may have to upload a large file to your WordPress site. The default for WordPress is 8MB so larger files will not work.

The simple way to overcome this problem is to add a php.ini file to your /wp-admin/ directory with the following:

memory_limit = 32M
upload_max_filesize = 32M
post_max_size = 32M
file_uploads = On

You can make the 32MB higher if your file is larger than 32MB.

– Host your wordpress site with Hostgator for unlimited space at a great price:

Leave a Reply

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