From 8373f2c714a630349c3fccac0965e0c66ba97c62 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Sun, 29 Mar 2026 15:53:59 +0200 Subject: [PATCH] fix(filesDrop): drag-and-drop folder upload directories Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- apps/files/src/services/DropService.ts | 2 +- apps/files/src/services/DropServiceUtils.ts | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/files/src/services/DropService.ts b/apps/files/src/services/DropService.ts index 096ae48ca1fbd..f790a2e8548f9 100644 --- a/apps/files/src/services/DropService.ts +++ b/apps/files/src/services/DropService.ts @@ -124,7 +124,7 @@ export async function onDropExternalFiles(root: RootDirectory, destination: IFol if (file instanceof Directory) { try { logger.debug('Processing directory', { relativePath }) - await createDirectoryIfNotExists(relativePath) + await createDirectoryIfNotExists(relativePath, destination) await uploadDirectoryContents(file, relativePath) } catch (error) { showError(t('files', 'Unable to create the directory {directory}', { directory: file.name })) diff --git a/apps/files/src/services/DropServiceUtils.ts b/apps/files/src/services/DropServiceUtils.ts index 0707df548fb6e..fa9a7dfcbc732 100644 --- a/apps/files/src/services/DropServiceUtils.ts +++ b/apps/files/src/services/DropServiceUtils.ts @@ -133,17 +133,21 @@ function readDirectory(directory: FileSystemDirectoryEntry): Promise - emit('files:node:created', resultToNode(stat.data, defaultRootPath, davUrl)) + emit('files:node:created', resultToNode(stat.data, davRoot, davUrl)) } }