Closed Mangatt closed 2 years ago
Strangely, just one direction is problematic, downloading works just fine:
const out = fs.createWriteStream('test/test.png')
await client.downloadToStream('/test/test.png', out)
await finished(out)
Ok, never mind, it was caused by server config recommended by Nextcloud. For future reference, it was fastcgi_request_buffering off
nginx directive in our case.
Thanks you @Mangatt for leaving the information about what caused this problem. We'll try to look into why this is causing problems with the upload stream.
Hi, this simple upload code fails to upload contents of file. In this case, file is created, no error is emitted, but Nextcloud file size is 0 B.
Versions: nextcloud-link: 1.2.9 nextcloud: 22.2.5 Node: 17.5.0
Anyone has an idea what might be causing this?