Skip to content

Commit 2ec0ff4

Browse files
authored
Add webp and avif as allowed formats for active storage to serve inline (rails#50265)
1 parent 1247932 commit 2ec0ff4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

activestorage/lib/active_storage/engine.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class Engine < Rails::Engine # :nodoc:
6565
)
6666

6767
config.active_storage.content_types_allowed_inline = %w(
68+
image/webp
69+
image/avif
6870
image/png
6971
image/gif
7072
image/jpeg

0 commit comments

Comments
 (0)