From 5e168eaee1b11368b13aa385b382ed53f860fae8 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Sat, 22 Aug 2026 03:21:02 +0530 Subject: [PATCH] raise the avatar upload limit to 10mb --- cmd/users.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/users.go b/cmd/users.go index d659a114..8278d403 100644 --- a/cmd/users.go +++ b/cmd/users.go @@ -23,7 +23,8 @@ import ( ) const ( - maxAvatarSizeMB = 2 + // Bounds the request body only; the stored file is capped by image.AvatarMaxDim regardless. + maxAvatarSizeMB = 10 ) type resetPasswordRequest struct {