Remove gif from allowed image types
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -236,7 +236,7 @@ export const TrustCenterReferenceDialog = forwardRef<TrustCenterReferenceDialogR
|
||||
|
||||
<Field label={__("Logo")}>
|
||||
<Dropzone
|
||||
description={__("Upload logo image (PNG, JPG, WEBP up to 5MB)")}
|
||||
description={__("Upload logo image (PNG, JPG, WEBP, SVG up to 5MB)")}
|
||||
isUploading={isSubmitting}
|
||||
onDrop={handleDrop}
|
||||
accept={acceptImage}
|
||||
|
||||
@@ -42,7 +42,6 @@ export const acceptText = {
|
||||
export const acceptImage = {
|
||||
"image/jpeg": [".jpg", ".jpeg"],
|
||||
"image/png": [".png"],
|
||||
"image/gif": [".gif"],
|
||||
"image/svg+xml": [".svg"],
|
||||
"image/webp": [".webp"],
|
||||
} satisfies Record<string, string[]>;
|
||||
|
||||
@@ -72,7 +72,6 @@ var FileTypes = []FileType{
|
||||
// Image types
|
||||
{MimeType: "image/jpeg", Extensions: []string{".jpg", ".jpeg"}, Category: CategoryImage},
|
||||
{MimeType: "image/png", Extensions: []string{".png"}, Category: CategoryImage},
|
||||
{MimeType: "image/gif", Extensions: []string{".gif"}, Category: CategoryImage},
|
||||
{MimeType: "image/svg+xml", Extensions: []string{".svg"}, Category: CategoryImage},
|
||||
{MimeType: "image/webp", Extensions: []string{".webp"}, Category: CategoryImage},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user