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 )
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 )