JSON needs base64 now. So, that's a thing...

This commit is contained in:
ArsenArsen 2017-06-18 23:06:01 +02:00
parent f425d47bcd
commit 2c87b12563

View File

@ -105,6 +105,7 @@ CustomUploader::CustomUploader(QString absFilePath) {
if (!bool64.isNull() && !bool64.isUndefined()) {
if (!bool64.isBool()) error(absFilePath, "base64 must be boolean");
base64 = bool64.toBool();
if (rFormat = RequestFormat::JSON && !base64) error(absFilePath, "base64 required with json");
}
}