From: Kevin Ottens Date: Wed, 13 Jan 2021 17:00:19 +0000 (+0100) Subject: Repair chunked uploads X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~427^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5325e058d811106d551f941b4975118e5b2e41ee;p=nextcloud-desktop.git Repair chunked uploads There's been a confusion between the chunk number and the chunk offset leading to corruptions... Let's pass the proper offset to the UploadDevice again. Signed-off-by: Kevin Ottens --- diff --git a/src/libsync/propagateuploadng.cpp b/src/libsync/propagateuploadng.cpp index ca67b7c04..62d1fca03 100644 --- a/src/libsync/propagateuploadng.cpp +++ b/src/libsync/propagateuploadng.cpp @@ -318,7 +318,7 @@ void PropagateUploadFileNG::startNextChunk() const QString fileName = _fileToUpload._path; auto device = std::make_unique( - fileName, _currentChunk, _currentChunkSize, &propagator()->_bandwidthManager); + fileName, _sent, _currentChunkSize, &propagator()->_bandwidthManager); if (!device->open(QIODevice::ReadOnly)) { qCWarning(lcPropagateUploadNG) << "Could not prepare upload device: " << device->errorString();