bool open(OpenMode flags) override
Opens the file using OpenMode mode, returning true if successful; otherwise false.
The QHttpMultiPart class resembles a MIME multipart message to be sent over HTTP.
void append(const QHttpPart &httpPart)
Appends httpPart to this multipart.
The QHttpPart class holds a body part to be used inside a HTTP multipart MIME message.
void setBodyDevice(QIODevice *device)
Sets the device to read the content from to device.
void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value)
Sets the value of the known header header to be value, overriding any previously set headers.
void setBody(const QByteArray &body)
Sets the body of this MIME part to body.
The QNetworkAccessManager class allows the application to send network requests and receive replies.
QNetworkReply * post(const QNetworkRequest &request, QIODevice *data)
Sends an HTTP POST request to the destination specified by request and returns a new QNetworkReply ob...
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
@ ContentDispositionHeader
void setParent(QObject *parent)
Makes the object a child of parent.
QNetworkAccessManager manager
QHttpMultiPart * multiPart
[0]
QNetworkRequest request(url)
QUrl url("http://my.server.tld")