Change media upload limits and remove client-side resizing (#23726)
This commit is contained in:
parent
ef127c964a
commit
9bda933740
9 changed files with 38 additions and 246 deletions
|
@ -5,7 +5,7 @@ require 'mime/types/columnar'
|
|||
module Attachmentable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
MAX_MATRIX_LIMIT = 16_777_216 # 4096x4096px or approx. 16MB
|
||||
MAX_MATRIX_LIMIT = 33_177_600 # 7680x4320px or approx. 847MB in RAM
|
||||
GIF_MATRIX_LIMIT = 921_600 # 1280x720px
|
||||
|
||||
# For some file extensions, there exist different content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue