Add support for webp uploads (#18506)

This commit is contained in:
Alexander Ivanov
2022-05-28 02:06:40 +08:00
committed by GitHub
parent d21251f8fe
commit 379a7a7ca7
6 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
module AccountHeader
extend ActiveSupport::Concern
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif'].freeze
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
LIMIT = 2.megabytes
MAX_PIXELS = 750_000 # 1500x500px