- Published: Thursday, 10 March 2016 17:53
- Written by Syed Muneeb
If you are getting this error "There was an error uploading this file to the server." when trying to install any new template, plugin or extension during upload from Joomla! backend, DON'T PANIC. This article will walk you through the steps to resolve this hurdle in your development process.
The most common reason for this problem is that the file you are trying to upload is too big than a server upload file limit. By default server allows files to be uploaded that are under 2MB in size. Files larger than 2MB will not be entertained and your will get this iritating rejection error message.
If you have access to the server file named 'php.ini', then open it up in your favourite text editor and search for 'upload_max_filesize' directive. You will notice that it is set to 2MB. All you need to do is to increase the limit to your desired value may be to 8MB, 16MB or 32MB depending on the maximum file size you are trying to upload. Save the changes and RELOAD the server configurations to reflect these changes.
If you are running PHP in CGI mode on Apache, you can place an .htaccess file in your Joomla! root directory and place the following code inside.
php_value upload_max_filesize 4M
Try uploading the file again from the Joomla! backend and here you go. That's it :)