From 03240dff77782466150582bda8b07fb6b88c01dc Mon Sep 17 00:00:00 2001 From: aditya-mitra <55396651+aditya-mitra@users.noreply.github.com> Date: Mon, 8 Dec 2025 23:44:09 +0530 Subject: [PATCH] feat: allow webp upload for profile avatar --- webapp/src/component/common/avatar/ProfileAvatar.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp/src/component/common/avatar/ProfileAvatar.tsx b/webapp/src/component/common/avatar/ProfileAvatar.tsx index 91bf008c47..178f823836 100644 --- a/webapp/src/component/common/avatar/ProfileAvatar.tsx +++ b/webapp/src/component/common/avatar/ProfileAvatar.tsx @@ -54,7 +54,12 @@ const file2Base64 = (file: File): Promise => { }); }; -const ALLOWED_UPLOAD_TYPES = ['image/png', 'image/jpeg', 'image/gif']; +const ALLOWED_UPLOAD_TYPES = [ + 'image/png', + 'image/jpeg', + 'image/gif', + 'image/webp', +]; export const ProfileAvatar: FC<{ disabled?: boolean;