z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.13k stars 2.81k forks source link

Error on make thumbnail when upload image #5746

Open huynhnhathoangit opened 1 year ago

huynhnhathoangit commented 1 year ago

Description:

I got error when use thumbnail on form file upload;

 ErrorException In Util.php line 275 :
 fstat() expects parameter 1 to be resource, object given

the code run perfect without thumbnail, some error appear on insert, crop too. $form->image('profile_picture', __('Profile picture')) ->removable()->downloadable() ->move("product/".date("Y")."/".date("m")) ->rules('mimes:jpeg,png,jpg,gif,svg,webp') ->thumbnail('small', 300, 300) ;

Steps To Reproduce: