mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 06:45:49 +03:00
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 <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
f7be923b73
commit
5325e058d8
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ void PropagateUploadFileNG::startNextChunk()
|
||||||
|
|
||||||
const QString fileName = _fileToUpload._path;
|
const QString fileName = _fileToUpload._path;
|
||||||
auto device = std::make_unique<UploadDevice>(
|
auto device = std::make_unique<UploadDevice>(
|
||||||
fileName, _currentChunk, _currentChunkSize, &propagator()->_bandwidthManager);
|
fileName, _sent, _currentChunkSize, &propagator()->_bandwidthManager);
|
||||||
if (!device->open(QIODevice::ReadOnly)) {
|
if (!device->open(QIODevice::ReadOnly)) {
|
||||||
qCWarning(lcPropagateUploadNG) << "Could not prepare upload device: " << device->errorString();
|
qCWarning(lcPropagateUploadNG) << "Could not prepare upload device: " << device->errorString();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue