Tuesday, April 15, 2008

How do I change the PHP Max Upload file size? (.htaccess)

How do I change the PHP Max Upload file size? (.htaccess)


In the root folder of site! there is a file called htaccess.txt rename this to .htaccess. If you have already renamed the file then continue....

The PHP value you need to add is

Code: Select all
    php_value upload_max_filesize



So to allow a max upload of 8 Megabytes you would add to the .htaccess

Code: Select all
    php_value upload_max_filesize 8M

    php_value post_max_size 8M

No comments:

Post a Comment