diff --git a/apps/files/src/services/DropService.ts b/apps/files/src/services/DropService.ts index 096ae48ca1fbd..7d2aa1c03a985 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(join(destination.path, relativePath)) await uploadDirectoryContents(file, relativePath) } catch (error) { showError(t('files', 'Unable to create the directory {directory}', { directory: file.name }))