From e3ef1dd6b461c7b8e66c80d1bb2a9c158cffb569 Mon Sep 17 00:00:00 2001 From: Josh Pigford Date: Wed, 5 Feb 2025 12:04:24 -0600 Subject: [PATCH] Increase profile image size limit --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 5b163b83..f49b0d06 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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