voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Thumbnails are not deleted when deleting a media image

Open mko-tapptic opened this issue 5 years ago • 7 comments

Version information

  • Laravel: v6.18.18
  • Voyager: v1.4.1
  • PHP: 7.3.11
  • Database: n/a

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.

mko-tapptic avatar Jun 15 '20 07:06 mko-tapptic

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

MrCrayon avatar Aug 03 '20 09:08 MrCrayon

media_picker, duh

mko-tapptic avatar Aug 06 '20 06:08 mko-tapptic

I have the same issue, using media_picker

alexsergivan avatar Sep 29 '20 14:09 alexsergivan

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

michalniks avatar Mar 03 '21 10:03 michalniks

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
}]

AmrSubZero avatar Sep 16 '21 18:09 AmrSubZero

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.

egidiusmengelberg avatar Oct 13 '21 15:10 egidiusmengelberg

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.

rdupont55 avatar Mar 20 '22 00:03 rdupont55