Add webp and avif as allowed formats for active storage to serve inline (#50265)

This commit is contained in:
David Heinemeier Hansson 2023-12-17 17:39:04 -08:00 committed by GitHub
parent 1247932c80
commit 2ec0ff42be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ module ActiveStorage
)
config.active_storage.content_types_allowed_inline = %w(
image/webp
image/avif
image/png
image/gif
image/jpeg