diff --git a/src/nextcloudapi.cpp b/src/nextcloudapi.cpp index 3dad31f..e1d86d1 100644 --- a/src/nextcloudapi.cpp +++ b/src/nextcloudapi.cpp @@ -367,7 +367,8 @@ void NextcloudApi::replyFinished(QNetworkReply* reply) { reply->deleteLater(); break; case QNetworkAccessManager::PutOperation: - if (false) { + if (reply->url().toString().endsWith(DIRECT_DOWNLOAD_ENDPOINT)) { + // TODO } else { emit putFinished(reply); diff --git a/src/nextcloudapi.h b/src/nextcloudapi.h index 0cf6e78..4dcf353 100644 --- a/src/nextcloudapi.h +++ b/src/nextcloudapi.h @@ -27,6 +27,9 @@ const QString LOGIN_FLOWV2_ENDPOINT("/index.php/login/v2"); const int LOGIN_FLOWV2_MIN_VERSION = 16; const int LOGIN_FLOWV2_POLL_INTERVALL = 5000; +// Diredct Download +const QString DIRECT_DOWNLOAD_ENDPOINT("/ocs/v2.php/apps/dav/api/v1/direct"); + class NextcloudApi : public QObject { Q_OBJECT