The blog

upload_max_filesize PHP/Apache upload of large files

You may encounter a constraint when trying to upload files to your website. You may exceed the allowed upload size. You can fix this by modifying your .htaccess file to allow PHP to handle files larger than the default 2 MB.

Simply open your .htaccess file, or create one in web root folder if it’s not already there. Type in the following lines:

1
php_value upload_max_filesize 4M

This setting will effectively change you maximum upload file size to 4 MB. You should be able to upload that large file now.

Leave a Reply