Skip to content

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

fixed the bug with reading secrets from json

Vladyslav Matsiiako41774fa97cb4
diff --git a/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx b/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx
index 6df9ab8342..1c992df25d 100644
--- a/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx
+++ b/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx
@@ -175,7 +175,7 @@ export const SecretDropzone = ({
e.dataTransfer.dropEffect = "copy";
setDragActive.off();
- parseFile(e.dataTransfer.files[0]);
+ parseFile(e.dataTransfer.files[0], e.dataTransfer?.files?.[0]?.type === "application/json");
};
const handleFileUpload = (e: ChangeEvent<HTMLInputElement>) => {