1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Increase profile image size limit

This commit is contained in:
Josh Pigford 2025-02-05 12:04:24 -06:00
parent 4aba9d1c0b
commit e3ef1dd6b4

View file

@ -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