PostTooLargeException in Laravel
The Issue:
Illuminate/Http/Exceptions/PostTooLargeException.html
How to Fix PostTooLargeException in Laravel Framework
In laravel , while uploading bigger size images, pdf and other files PostTooLargeException error occurs. Because by default.max_file_size is set to 2M and uploading files types are having bigger
size more then 2MB so simply by increasing the default max_file_size we can fix the issue right away.
1) Increase PHP Post Max Size:
Edit your php.ini file to increase the post_max_size and upload_max_filesize values. For example:
post_max_size = 64M
upload_max_filesize = 64M
After update php settings in php.ini file restart the server.
No comments:
Post a Comment