spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

issue with singlefile() #3616

Closed satis-m closed 6 months ago

satis-m commented 6 months ago

i am registering my model for single file like this

public function registerMediaCollections(): void { $this->addMediaCollection('blog-main-pictures') ->acceptsMimeTypes(['image/jpeg', 'image/svg+xml', 'image/png', 'image/webp']) ->singleFile(); } when I update the picture it does not remove old one and adds new image. I found out that it keeps adding more image to collection instead, (NOTE: I am not using the any queue and I migrated from V 9 )

image

satis-m commented 6 months ago

sorry there was issue from my end , extreamly sorry