Skip to content

Commit

Permalink
Increase profile image size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpigford committed Feb 5, 2025
1 parent 4aba9d1 commit e3ef1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def deactivated_email
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

0 comments on commit e3ef1dd

Please sign in to comment.