Why is it too large to store? Where do you want to store the images?
heihachi88 said:
By default it uploads images using base64 data which is too large to store. It is possible to save images using laravel in a certain folder?
Yes, it is:
$file = Input::file('image');
$destinationPath = 'upload/'; //Path in your public folder...
$filename = $file->getClientOriginalName();
Input::file('image')->move($destinationPath, $filename);
I know that i can save images that way, but the question was about integrating image upload from summernote editor with laravel via ajax.
Yes, you can override the default behaviour of summernote image upload using 'onImageUpload' callback. Please refer to this link for more info : http://hackerwins.github.io/summernote/features.html#api-summernote
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community