diff --git a/src/LfmPath.php b/src/LfmPath.php index fcd2f3c3..1c28ce66 100644 --- a/src/LfmPath.php +++ b/src/LfmPath.php @@ -2,7 +2,6 @@ namespace UniSharp\LaravelFilemanager; -use Illuminate\Http\File; use Illuminate\Container\Container; use Intervention\Image\Facades\Image; use Symfony\Component\HttpFoundation\File\UploadedFile; @@ -316,9 +315,5 @@ public function makeThumbnail($file_name) $image = Image::make($original_image->get()) ->fit(config('lfm.thumb_img_width', 200), config('lfm.thumb_img_height', 200)) ->save($image_path); - - $file = new File($image_path); - - $this->setName($file_name)->thumb(true)->storage->save($file); } }