Fix one more thing in custom uploaders

This commit is contained in:
ArsenArsen 2017-06-06 22:12:22 +02:00
parent dbc8063f66
commit 806f918f49
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ QJsonObject recurseAndReplace(QJsonObject &body, QByteArray &data, QString conte
} else if (v.isString()) {
QString str = v.toString();
if (str.startsWith("/") && str.endsWith("/")) {
o.insert(s, str.mid(1, str.length() - 2).replace("%image", data).replace("%contenttype", contentType));
o.insert(s, str.mid(1, str.length() - 2).replace("%imagedata", data).replace("%contenttype", contentType));
} else
o.insert(s, v);
} else