mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-12 22:24:28 +03:00
[CSE] Fetch the metadata for the upload.
This commit is contained in:
parent
6745777ca3
commit
a08a32ceca
2 changed files with 11 additions and 0 deletions
|
@ -280,6 +280,16 @@ void PropagateUploadFileCommon::slotFolderLockedSuccessfully(const QByteArray& f
|
|||
_currentLockingInProgress = true;
|
||||
_folderToken = token;
|
||||
_folderId = fileId;
|
||||
|
||||
auto job = new GetMetadataApiJob(propagator()->account(), _folderId);
|
||||
connect(job, &GetMetadataApiJob::jsonReceived,
|
||||
this, &PropagateUploadFileCommon::slotFolderEncriptedMetadataReceived);
|
||||
job->start();
|
||||
}
|
||||
|
||||
void PropagateUploadFileCommon::slotFolderEncriptedMetadataReceived(const QJsonDocument &json, int statusCode)
|
||||
{
|
||||
qDebug() << "Metadata Received" << json.toVariant();
|
||||
}
|
||||
|
||||
void PropagateUploadFileCommon::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode)
|
||||
|
|
|
@ -286,6 +286,7 @@ private slots:
|
|||
void slotFolderLockedSuccessfully(const QByteArray& fileId, const QByteArray& token);
|
||||
void slotFolderLockedError(const QByteArray& fileId, int httpErrorCode);
|
||||
void slotTryLock(const QByteArray& fileId);
|
||||
void slotFolderEncriptedMetadataReceived(const QJsonDocument &json, int statusCode);
|
||||
|
||||
// Private Encryption Stuff
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue