IPrice minimart
powerfull & flexible online Store, price-lists and catalogs for Joomla

How to increase the size of file uploads

VKontakte
Usually the maximum site of uploaded file is 2MB. There are a few ways to increase this size:

For local server

Open fo edit /usr/local/php5/php.ini file.
Find variables upload_max_filesize, post_max_size, max_execution_time and set their to the following values:

upload_max_filesize = 5M
post_max_size = 5M
max_execution_time = 500

Restart local web server after making changes.

For remote server

Usually we do not have access to the root file php.ini on remote servers of hosting. In this case we can use one of two ways:

1. Ask the hoster to increase the maximum file size, or try to do it yourself by creating file php.ini in the root folder of your site (or in the root directory for sites, such as /public_html). Then add a few lines to this file (note - not all hosting companies support it) :

upload_max_filesize = 5M
post_max_size = 5M
max_execution_time = 500

2. Add a few lines in .htaccess file:

php_value upload_max_filesize 5M
php_value post_max_size 5M
php_value max_execution_time 500
php_value max_input_time 500


 

Login

Subscribe



Subscribe to our newsletter and social networks to be updated with the latest updates.

Login