Large uploads

The maximum file that eXtplorer can upload to your server is determined by your PHP configuration. The default PHP may limit you to file sizes as small as 2 MB.

To increase your upload limit you need to change the following settings:

  1. upload_max_filesize - The maximum size of an uploaded file.
  2. *memory_limit - This sets the maximum amount of memory in bytes that a script is allowed to allocate. To have no memory limit, set this directive to -1.
  3. post_max_size - Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

There are two methods to change these settings.

Method One

Edit your php.ini file
(usually stored in /etc/php.ini or /etc/php.d/cgi/php.ini or /usr/local/etc/php.ini):

Add or change the following lines:

memory_limit = 320M
upload_max_filesize = 100M
post_max_size = 200M

Save and close the file. Restart apache or lighttpd web server

Method Two

Edit your .htaccess file in your root web directory

This is useful when you do not have access to php.ini file. In this example, /home/httpd/html is considered as root directory (you can also create .htaccess file locally and than upload it using ftp / sftp / scp client)

Add or change the following lines:

php_value upload_max_filesize 100M
php_value post_max_size 200M
php_value memory_limit 320M

Save and Close the file.

Updated by Tim Alatorre about 13 years ago ยท 1 revisions