Project

General

Profile

Large uploads » History » Version 1

Tim Alatorre, 03/28/2011 11:26 PM
Page created

1 1 Tim Alatorre
h1. Large uploads
2
3
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.
4
5
To increase your upload limit you need to change the following settings:
6
7
# *upload_max_filesize* - The maximum size of an uploaded file.
8
# *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.
9
# *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.
10
11
There are two methods to change these settings.
12
13
h2. Method One
14
15
Edit your php.ini file
16
(usually stored in /etc/php.ini or /etc/php.d/cgi/php.ini or /usr/local/etc/php.ini):
17
18
Add or change the following lines:
19
20
@memory_limit = 320M
21
upload_max_filesize = 100M
22
post_max_size = 200M@
23
24
Save and close the file. Restart apache or lighttpd web server
25
26
h2. Method Two
27
28
Edit your .htaccess file in your root web directory
29
30
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)
31
32
Add or change the following lines:
33
34
@php_value upload_max_filesize 100M
35
php_value post_max_size 200M
36
php_value memory_limit 320M@
37
38
Save and Close the file.