From f31c48ad9d0b703ea52c4398a186d22dfb7af67d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 8 Jul 2024 15:59:55 +0200 Subject: [PATCH] fix: Allow remote URL with protocol Signed-off-by: Ferdinand Thiessen --- lib/uploader.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uploader.ts b/lib/uploader.ts index dec2c16f..34bc34d9 100644 --- a/lib/uploader.ts +++ b/lib/uploader.ts @@ -4,7 +4,7 @@ import type { WebDAVClient } from 'webdav' import { getCurrentUser } from '@nextcloud/auth' import { Folder, Permission, davGetClient, davRemoteURL, davRootPath } from '@nextcloud/files' import { encodePath } from '@nextcloud/paths' -import { join, normalize } from 'path' +import { normalize } from 'path' import axios, { isCancel } from '@nextcloud/axios' import PCancelable from 'p-cancelable' @@ -55,7 +55,7 @@ export class Uploader { this._isPublic = isPublic if (!destinationFolder) { - const source = join(davRemoteURL, davRootPath) + const source = `${davRemoteURL}${davRootPath}` let owner: string if (isPublic) {