зеркало из https://github.com/nextcloud/desktop.git
Upload: Log the checksum / file hash
This commit is contained in:
Родитель
13a5653c4e
Коммит
4aad318446
|
@ -284,9 +284,9 @@ void PropagateUploadFileNG::startNextChunk()
|
|||
headers["If"] = "<" + destination.toUtf8() + "> ([" + ifMatch + "])";
|
||||
}
|
||||
if (!_transmissionChecksumHeader.isEmpty()) {
|
||||
qCInfo(lcPropagateUpload) << destination << _transmissionChecksumHeader;
|
||||
headers[checkSumHeaderC] = _transmissionChecksumHeader;
|
||||
}
|
||||
|
||||
headers["OC-Total-Length"] = QByteArray::number(fileSize);
|
||||
|
||||
auto job = new MoveJob(propagator()->account(), Utility::concatUrlPath(chunkUrl(), "/.file"),
|
||||
|
@ -333,8 +333,6 @@ void PropagateUploadFileNG::startNextChunk()
|
|||
job->start();
|
||||
propagator()->_activeJobList.append(this);
|
||||
_currentChunk++;
|
||||
|
||||
// FIXME! parallel chunk?
|
||||
}
|
||||
|
||||
void PropagateUploadFileNG::slotPutFinished()
|
||||
|
|
|
@ -104,6 +104,7 @@ void PropagateUploadFileV1::startNextChunk()
|
|||
qCDebug(lcPropagateUpload) << _chunkCount << isFinalChunk << chunkStart << currentChunkSize;
|
||||
|
||||
if (isFinalChunk && !_transmissionChecksumHeader.isEmpty()) {
|
||||
qCInfo(lcPropagateUpload) << propagator()->_remoteFolder + path << _transmissionChecksumHeader;
|
||||
headers[checkSumHeaderC] = _transmissionChecksumHeader;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче