[WEB-4137] chore: restrict SVG file selection (#7095)

* chore: update accepted file mime types

* chore: update accepted file mime types
This commit is contained in:
Aaryan Khandelwal 2025-05-23 15:33:56 +05:30 committed by GitHub
parent cd200169b6
commit 6eb0b5ddb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 12 deletions

View file

@ -1 +1,14 @@
export const MAX_FILE_SIZE = 5 * 1024 * 1024; // 5MB
export const ACCEPTED_AVATAR_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE = {
"image/jpeg": [],
"image/jpg": [],
"image/png": [],
"image/webp": [],
};
export const ACCEPTED_COVER_IMAGE_MIME_TYPES_FOR_REACT_DROPZONE = {
"image/jpeg": [],
"image/jpg": [],
"image/png": [],
"image/webp": [],
};