mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Increase profile image size limit
This commit is contained in:
@@ -129,8 +129,8 @@ class User < ApplicationRecord
|
||||
end
|
||||
|
||||
def profile_image_size
|
||||
if profile_image.attached? && profile_image.byte_size > 5.megabytes
|
||||
errors.add(:profile_image, :invalid_file_size, max_megabytes: 5)
|
||||
if profile_image.attached? && profile_image.byte_size > 10.megabytes
|
||||
errors.add(:profile_image, :invalid_file_size, max_megabytes: 10)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user