fix: allow aborting upload tasks
This maintains the same behaviour as the Download task. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -46,6 +46,8 @@ namespace Net {
|
||||
|
||||
public:
|
||||
static Upload::Ptr makeByteArray(QUrl url, QByteArray *output, QByteArray m_post_data);
|
||||
auto abort() -> bool override;
|
||||
auto canAbort() const -> bool override { return true; };
|
||||
|
||||
protected slots:
|
||||
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal) override;
|
||||
|
Reference in New Issue
Block a user