I am writing an application that is posting data as http multipart to a server. One of the parts is ordinary text, the other part is read from a sequential QIODevice.
Post with QNAM hangs after all of the data is read from the device.
There is a note in the documentation [qt-project.org] that:
if device is sequential (e.g. sockets, but not files), QNetworkAccessManager::post() should be called after device has emitted finished().
However QIODevice [qt-project.org] doesn’t emit finished() at all. Is there an error in the documentation?
What is the proper way to use sequential QIODevice with QHttpMultipart?
↧