fix: drag-and-drop folder upload
@@ -129,7 +129,7 @@ export function handleFiles(files, base, overwrite = false) {
path,
file,
overwrite,
- type: detectType(file.type),
+ ...(!file.isDir && { type: detectType(file.type) })
};
store.dispatch("upload/upload", item);
