Support the ongoing development of Laravel.io →
posted 10 years ago
Requests
Last updated 2 years ago.
0

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);
Last updated 2 years ago.
0

I know that i can save images that way, but the question was about integrating image upload from summernote editor with laravel via ajax.

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.