fix: only accept json for folder upload
This commit is contained in:
parent
600c99b995
commit
c2f6ce86dc
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ===
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue