Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnails are not deleted when deleting a media image #4980

Open
mko-tapptic opened this issue Jun 15, 2020 · 7 comments
Open

Thumbnails are not deleted when deleting a media image #4980

mko-tapptic opened this issue Jun 15, 2020 · 7 comments

Comments

@mko-tapptic
Copy link

mko-tapptic commented Jun 15, 2020

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.

@MrCrayon
Copy link
Collaborator

MrCrayon commented Aug 3, 2020

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

@mko-tapptic
Copy link
Author

media_picker, duh

@alexsergivan
Copy link

I have the same issue, using media_picker

@michalniks
Copy link

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

@AmrSubZero
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants
@AmrSubZero @MrCrayon @alexsergivan @egidiusmengelberg @mko-tapptic @michalniks @rdupont55 and others