This may have to do with your web server configuration or php.ini settings. Look for post_max_size and upload_max_filesize in your php.ini.
Restart your webserver with updated larger values and this should help.
I am using Summernote rich text editor to upload post to my website. Now When I try to insert an image using Summernote this show me some error like {Illuminate\Http\Exceptions\PostTooLargeException}
Lots.
Never store an image in the database or any other binary objects if it can be avoided.
Converting it to base64 will just use up your resources and make your tables huge and that decreases performance. It will increase the size of the image with around 20% (Tested with two different sized images).
Just store a link to the image in the database and the file on you desired file system.
Please or to participate in this conversation.