lundi 14 mars 2016

Can't upload large file in Laravel (php.ini settings are correct in my opinion)

I have the following problem in Laravel.

I would like to upload a file through a form. But for some reason if the file is larger than around 2100 KB, the validation fails, and says that the file is 'required' and I did not provide it.

I've read numerous articles, that this can be because of php.ini settings. On my server they are the following:

upload_max_filesize 64M
post_max_size 64M

These values are copied from the output of phpinfo(), so they are in effect.

And despite this, the upload fails even for a 2 MB file. Do you have any ideas what I could check/set to solve this?

I am using laravel 5.2, and PHP 7.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire