fix: only accept json for folder upload

This commit is contained in:
ogabrielluiz 2024-06-17 18:37:59 -03:00
commit c2f6ce86dc

View file

@ -136,6 +136,7 @@ export const useFolderStore = create<FoldersStoreType>((set, get) => ({
return new Promise<void>((resolve, reject) => {
const input = document.createElement("input");
input.type = "file";
input.accept = ".json";
input.onchange = (event: Event) => {
if (
(event.target as HTMLInputElement).files![0].type ===