mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Chunking-NG: use new dav URL for the move
This commit is contained in:
parent
818b5854ce
commit
c41f6ed76b
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,6 @@ namespace OCC {
|
|||
|
||||
QUrl PropagateUploadFileNG::chunkUrl(int chunk)
|
||||
{
|
||||
// FIXME! we should not use the user from the credential, we should have it in the account
|
||||
QString path = QLatin1String("remote.php/dav/uploads/")
|
||||
+ _propagator->account()->user()
|
||||
+ QLatin1Char('/') + QString::number(_transferId);
|
||||
|
@ -204,7 +203,8 @@ void PropagateUploadFileNG::startNextChunk()
|
|||
Q_ASSERT(_jobs.isEmpty()); // There should be no running job anymore
|
||||
_finished = true;
|
||||
// Finish with a MOVE
|
||||
QString destination = _propagator->_remoteDir + _item->_file;
|
||||
QString destination = QLatin1String("remote.php/dav/files/")
|
||||
+ _propagator->account()->user() + QLatin1Char('/') + QString::number(_transferId);
|
||||
auto headers = PropagateUploadFileCommon::headers();
|
||||
auto job = new MoveJob(_propagator->account(), Account::concatUrlPath(chunkUrl(), "/.file"),
|
||||
destination, headers, this);
|
||||
|
|
Loading…
Reference in a new issue