Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix ICO files

x032205d31c552a29cb
diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.ts
index 475266f6bb..a6fa8cd252 100644
--- a/backend/src/server/routes/v1/secret-sharing-router.ts
+++ b/backend/src/server/routes/v1/secret-sharing-router.ts
@@ -21,6 +21,7 @@ const ALLOWED_IMAGE_CONTENT_TYPES = [
"image/gif",
"image/svg+xml",
"image/x-icon",
+ "image/vnd.microsoft.icon",
"image/webp"
];
const MAX_IMAGE_SIZE = 1 * 1024 * 1024; // 1MB
diff --git a/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx b/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx
index 127e254394..71c497495d 100644
--- a/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx
+++ b/frontend/src/pages/organization/SecretSharingPage/components/SecretSharingSettings/SecretSharingBrandingSection.tsx
@@ -30,6 +30,7 @@ const ALLOWED_FILE_TYPES = [
"image/gif",
"image/svg+xml",
"image/x-icon",
+ "image/vnd.microsoft.icon",
"image/webp"
];
@@ -121,6 +122,10 @@ const AssetUploadCard = ({
const handleFileChange = async (event: React.ChangeEvent<HTMLInputElement>) => {
const file = event.target.files?.[0];
+
+ // eslint-disable-next-line no-param-reassign
+ event.target.value = "";
+
if (file) {
const error = validateFile(file);
if (error) {