Translations of this page?:

Maximum Upload File Size

:?: Is there an easy way to increase the maximum file upload size (currently 2 megabytes)?

:!: The file upload size is set in your PHP configuration, php.ini, with the parameter upload_max_filesize.

The setting can be changed in a number of different places depending on your webserver and the method it uses to run PHP.

E.g.

For Apache & mod_php. add the following two lines to .htaccess in the installed directory:

php_value upload_max_filesize 15M
php_value post_max_size 15M

For cgi php (but not fast_cgi), add the following two lines to a local php.ini

upload_max_filesize = 15M
post_max_size = 15M

Note: Red Hat ES users will also want to check (and probably increase) LimitRequestBody in /etc/httpd/conf.d/php.conf, which is set by default to a fairly low value. This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body.

For more details check the support section of your webhost, the documentation for your webserver and the instructions for configuring php at www.php.net.

 
faq/uploadsize.txt · Last modified: 2008/11/07 19:59 by 70.103.232.219
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsTranslate