farhatmihalko farhatmihalko - 2 months ago 12x
PHP Question

Laravel 4, upload_max_filezise directive how increase?

I use

laravel 4
for development. I creating file uploading but after upload a file with size > 2 mb, i receive next error:

The file "Downloads.zip" exceeds your upload_max_filesize ini
directive (limit is 2048 kb).

How I can increase limit?


You need to increase the value in php.ini. Because you are using the built in webserver you are going to need to specify the php.ini file using the -c flag as below:

php -S localhost:4000 -c /home/username/php.ini

and update the value in that file.