2 Commits

Author SHA1 Message Date
e1264cbb56 package and build 2021-06-08 17:11:30 +02:00
7d73f7e889 update max content length 2021-06-08 17:10:34 +02:00
3 changed files with 5 additions and 3 deletions

3
dist/index.js vendored
View File

@ -486,7 +486,8 @@ class NextcloudClient {
this.headers = { Authorization: 'Basic ' + Buffer.from(`${this.username}:${this.password}`).toString('base64') }; 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}`, { this.davClient = webdav.createClient(`${this.endpoint.href}remote.php/dav/files/${this.username}`, {
username: this.username, username: this.username,
password: this.password password: this.password,
maxBodyLength: 1024 ** 3
}); });
} }
async uploadFiles(files) { async uploadFiles(files) {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -32,7 +32,8 @@ export class NextcloudClient {
this.headers = { Authorization: 'Basic ' + Buffer.from(`${this.username}:${this.password}`).toString('base64') } 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}`, { this.davClient = webdav.createClient(`${this.endpoint.href}remote.php/dav/files/${this.username}`, {
username: this.username, username: this.username,
password: this.password password: this.password,
maxBodyLength: 1024 ** 3
}) })
} }