Skip to content

Commit 0dd1a98

Browse files
authored
fix: only disable chunking if public upload and legacy server
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 086d79c commit 0dd1a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/uploader/uploader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ export class Uploader {
478478
const supportsPublicChunking = getCapabilities().dav?.public_shares_chunking ?? false
479479
const maxChunkSize = getMaxChunksSize('size' in file ? file.size : undefined)
480480
// If manually disabled or if the file is too small
481-
const disabledChunkUpload = !supportsPublicChunking
481+
const disabledChunkUpload = (this._isPublic && !supportsPublicChunking)
482482
|| maxChunkSize === 0
483483
|| ('size' in file && file.size < maxChunkSize)
484484

0 commit comments

Comments
 (0)