add size var to controller file
Add MAX_SIZE_LIMIT to control image and video size limit to read from env filestaging
parent
6181c72ff5
commit
2597f31daf
|
@ -125,7 +125,7 @@ class MediaAttachment < ApplicationRecord
|
|||
},
|
||||
}.freeze
|
||||
|
||||
SIZE_LIMIT = 66.megabytes
|
||||
SIZE_LIMIT = (ENV['MAX_SIZE_LIMIT'] || 66.megabytes).to_i.megabytes
|
||||
GIF_LIMIT = ENV.fetch('MAX_GIF_SIZE', 333).to_i.kilobytes
|
||||
|
||||
belongs_to :account, inverse_of: :media_attachments, optional: true
|
||||
|
|
Loading…
Reference in New Issue