From 7d73f7e889a4482fdcd248375c0597a89d46dffa Mon Sep 17 00:00:00 2001 From: Trym Lund Flogard Date: Tue, 8 Jun 2021 17:10:34 +0200 Subject: [PATCH] update max content length --- src/nextcloud/NextcloudClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nextcloud/NextcloudClient.ts b/src/nextcloud/NextcloudClient.ts index 357a141..e2ac628 100644 --- a/src/nextcloud/NextcloudClient.ts +++ b/src/nextcloud/NextcloudClient.ts @@ -32,7 +32,8 @@ export class NextcloudClient { this.headers = { Authorization: 'Basic ' + Buffer.from(`${this.username}:${this.password}`).toString('base64') } this.davClient = webdav.createClient(`${this.endpoint.href}remote.php/dav/files/${this.username}`, { username: this.username, - password: this.password + password: this.password, + maxBodyLength: 1024 ** 3 }) }