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