Skip to content

Conversation

@darwinnatha
Copy link

@darwinnatha darwinnatha commented Nov 6, 2024

J'ai ajoute l'acceptation de 2 mimetypes celui des webp et celui des svg

$this->addMediaCollection('media')
->singleFile()
->acceptsMimeTypes(['image/jpg', 'image/jpeg', 'image/png']);
->acceptsMimeTypes(['image/jpg', 'image/jpeg', 'image/png', 'image/webp', 'image/svg+xml']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove svg mimes. This is not allowed

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the svg mimes. It's only the webp right now

@mckenziearts mckenziearts merged commit e2ef3a7 into laravelcm:main Nov 8, 2024
3 of 5 checks passed
@darwinnatha darwinnatha deleted the add-image-mimetypes branch December 21, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants