This website is using cookies

If you get the message there was an error uploading this file to the server when you attempt to install the template via your Joomla administrator area this is due to the upload_max_filesize and post_max_size PHP directives which your hosting provider has in place.


A lot of shared hosting companies put a 2 MB restriction in place which stops files larger than 2 MB from getting uploaded to your web site.

It is very easy to increase the upload max file size and post max file size from 2 MB to 8 MB or higher.

How do I increase the max file size

  1. Access your web hosting space via FTP and download the php.ini file to your computer
  2. The php.ini file will be located in the public_html directory
  3. Open the php.ini file using Notepad.exe and copy and paste the following code into the file

upload_max_filesize = 8M
post_max_size = 8M

4. Save the changes to the php.ini file and upload the updated file to the public_html directory.

I do not have a php.ini file

If you do not already have a php.ini file you just need to create a new one

  1. Open Notepad.exe
  2. Copy and paste the code into notepad.exe

upload_max_filesize = 8M
post_max_size = 8M

3. Save the file name as php.ini to your computer

4. Open your FTP software and upload the php.ini file to the pubic_html directory

Can I increase the max file size to more than 8 MB

Yes, you can increase it to 16 or 32 MB or higher.

For example to increase it to 32 MB just change the values as show below

upload_max_filesize = 32M
post_max_size = 32M

Knowledge Base