Add support for webp uploads (#18506)
This commit is contained in:
parent
d21251f8fe
commit
379a7a7ca7
6 changed files with 7 additions and 7 deletions
|
@ -34,7 +34,7 @@
|
|||
class PreviewCard < ApplicationRecord
|
||||
include Attachmentable
|
||||
|
||||
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif'].freeze
|
||||
IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].freeze
|
||||
LIMIT = 1.megabytes
|
||||
|
||||
BLURHASH_OPTIONS = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue