Skip to content

Commit

Permalink
Merge pull request #1271 from nextcloud-libraries/fix/uploader-with-p…
Browse files Browse the repository at this point in the history
…rotocol

fix: Allow remote URL with protocol
  • Loading branch information
susnux authored Jul 8, 2024
2 parents 0a84979 + f31c48a commit 82d0266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 82d0266

Please sign in to comment.