Oh, good call. I got it confused with QNetworkReply's finished();
Sent: Thursday, October 31, 2019 at 8:16 PM
From: "Tony Rietwyk"
To: interest@qt-project.org
Subject: Re: [Interest] Curious QNetworkAccessManager behavior.
Hi Jason,
You should only connect to QNetwo
Hi Jason,
You should only connect to QNetworkAccessManager::finished once - before
sending any files. You are adding another connection with each file.
From https://doc.qt.io/qt-5/qobject.html:
By default, a signal is emitted for every connection you make; two
signals are emitted for duplic
I'm uploading files with QNAM.
QFile *file = new
QFile(QString("%1/%2/%3").arg(_dataDir).arg(SERVER_SYNC_DIR).arg(filename));
if (file->open(QIODevice::ReadOnly)) {
QNetworkRequest
req(QUrl(QString("%1/%2/%3").arg(_serverUrl.toString()).arg("post").arg(filename)));
req.setHeader(QNetworkRequest::