diff --git a/client/dom/upload-files.js b/client/dom/upload-files.js index 9c003b3d..c5eefebf 100644 --- a/client/dom/upload-files.js +++ b/client/dom/upload-files.js @@ -10,15 +10,18 @@ const load = require('./load'); const Images = require('./images'); const {FS} = require('../../common/cloudfunc'); -const {CurrentInfo} = DOM; const onEnd = wraptile(_onEnd); const loadFile = wraptile(_loadFile); +const { + getCurrentDirPath: getPathWhenRootEmpty +} = DOM; + module.exports = (dir, files) => { if (!files) { files = dir; - dir = CurrentInfo.dirPath; + dir = getPathWhenRootEmpty(); } const n = files.length;