farhatmihalko farhatmihalko - 1 year ago 146
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download