thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.78k stars 2.67k forks source link

Thumbnails are not deleted when deleting a media image #4980

Open mko-tapptic opened 4 years ago

mko-tapptic commented 4 years ago

Version information

Description

Deleting an image from media does not delete related thumbnails

Steps To Reproduce

Steps to reproduce the behavior:

  1. Define a bread media field with thumbnail options
  2. Upload image
  3. Delete image
  4. Go to media, see that the original image is deleted, but thumbnail is not

Expected behavior

Deleting image deletes the thumbs as well.

MrCrayon commented 4 years ago

What's the type you are selecting for that field: image, multiple_images or media_picker ?

mko-tapptic commented 4 years ago

media_picker, duh

alexsergivan commented 4 years ago

I have the same issue, using media_picker

michalniks commented 3 years ago

I have the same issue with media_picker Laravel: v8.10.0 Voyager: v1.4.1 PHP: 7.3.1

AmrSubZero commented 3 years ago

i also have the same issue with Media Picker with Laravel 8.61.0 Voyager 1.5 PHP 7.4.13

"thumbnails": [{
    "type": "fit",
    "name": "fit-500",
    "width": 500,
    "position": "center",
    "upsize": true
}]
egidiusmengelberg commented 2 years ago

I'm having the same issue. I think I'll fix it for now by adding a delete all button. Not really an elegant solution but it's better than nothing.

rdupont55 commented 2 years ago

In addition, if you upload a file, that file has a thumbnail generated, and then you rename the root file, the thumbnail does not get renamed, yet remains in the directory with no way through the GUI to manage it.

I don't see why thumbnails don't show up in the GUI to be managed. It seems reasonable that you may want to delete a specific thumbnail, rename the thumbnail, or move the thumbnail like you would with a base image.