From e677c78471f09f8d2c21d63d7388e908924aa6d9 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Mon, 2 May 2022 15:01:39 +0000 Subject: [PATCH] fix: drag-and-drop folder upload --- frontend/src/utils/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/upload.js b/frontend/src/utils/upload.js index e1222024..3e3690e4 100644 --- a/frontend/src/utils/upload.js +++ b/frontend/src/utils/upload.js @@ -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);