You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel 11.32.0
Media Library: 11.10.0
PHP: 8.2.25
Using Herd 1.12.0
DigitalOcean Spaces for file storage
I've encountered an issue and I'm not sure if it's a bug. There is pretty much nothing I could find in the docs about deleting images, other than a video which only skims the surface.
When deleting a single image, I noticed the conversions were not being deleted; only the original image. So I started poking around. When I looked in the Laravel log I noticed this.
[2024-11-18 17:28:52] local.ERROR: There is no conversion named `header`
{"userId":2,"exception":"[object] (Spatie\\MediaLibrary\\MediaCollections\\Exceptions\\InvalidConversion(code: 0): There is no conversion named `header` at /Users/tim/Herd/myproject/vendor/spatie/laravel-medialibrary/src/MediaCollections/Exceptions/InvalidConversion.php:11)
Well, I have a header conversion, but it's not being applied to this particular disk.
As you can see from registerMediaConversions I am only applying sm, md, lg, and fullsize to the cloud disk. Why are the other unused collections being returned and throwing an error? Is this a bug? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Laravel 11.32.0
Media Library: 11.10.0
PHP: 8.2.25
Using Herd 1.12.0
DigitalOcean Spaces for file storage
I've encountered an issue and I'm not sure if it's a bug. There is pretty much nothing I could find in the docs about deleting images, other than a video which only skims the surface.
When deleting a single image, I noticed the conversions were not being deleted; only the original image. So I started poking around. When I looked in the Laravel log I noticed this.
Well, I have a
header
conversion, but it's not being applied to this particular disk.Here are the methods on my User model
In my Livewire component I am uploading the image to the
cloud
disk.And then deleting a single image from the same component
When investigating the
destroy
methodThis is returned.
As you can see from
registerMediaConversions
I am only applyingsm
,md
,lg
, andfullsize
to thecloud
disk. Why are the other unused collections being returned and throwing an error? Is this a bug? Or am I doing something wrong?The text was updated successfully, but these errors were encountered: