GH-719 Fix paste upload encoding and do not try to upload over limit
This commit is contained in:
parent
acb3346409
commit
1151037f96
3 changed files with 33 additions and 10 deletions
|
@ -18,12 +18,18 @@ public:
|
|||
{
|
||||
return m_pasteID;
|
||||
}
|
||||
uint32_t maxSize()
|
||||
{
|
||||
// 2MB for paste.ee
|
||||
return 1024*1024*2;
|
||||
}
|
||||
bool validateText();
|
||||
protected:
|
||||
virtual void executeTask();
|
||||
|
||||
private:
|
||||
bool parseResult(QJsonDocument doc);
|
||||
QString m_text;
|
||||
QByteArray m_text;
|
||||
QString m_error;
|
||||
QWidget *m_window;
|
||||
QString m_pasteID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue