Raise group avatar filesize limit to 200kb, fixes #8527
This commit is contained in:
parent
ac1584249c
commit
05dd6309ba
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Group < Namespace
|
|||
has_many :users, through: :group_members
|
||||
|
||||
validate :avatar_type, if: ->(user) { user.avatar_changed? }
|
||||
validates :avatar, file_size: { maximum: 100.kilobytes.to_i }
|
||||
validates :avatar, file_size: { maximum: 200.kilobytes.to_i }
|
||||
|
||||
mount_uploader :avatar, AttachmentUploader
|
||||
|
||||
|
|
Loading…
Reference in a new issue