1397/03/15 - 00:12
I need to store file in laravel and when i call store function i get error.
My code was:
$request["file"]->storeAs( $request["path"] , $fileName,'mypath');
Cause:
My file size was more than 2 MB and post_max_size Was 2 MB.
Solution:
I also opened php.ini inside the cli folder and made changes to upload_max_filesize and post_max_size, restarted apache2 by running
sudo service apache2 restart
Then quit php artisan server and ng server and restarted them. Now everything works fine!