From d13885bb0883bc0c666cb246982bd94f4b46e794 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 28 Apr 2021 18:21:11 +0200 Subject: [PATCH] Add XXX --- www/common/sframe-common-file.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/sframe-common-file.js b/www/common/sframe-common-file.js index 2a6f4fea3..4274a5538 100644 --- a/www/common/sframe-common-file.js +++ b/www/common/sframe-common-file.js @@ -129,6 +129,7 @@ define([ var l = privateData.plan ? ApiConfig.premiumUploadSize : false; l = l || ApiConfig.maxUploadSize || "?"; var maxSizeStr = Util.bytesToMegabytes(l); + // XXX blob.byteLength is wrong: we should use the lenght of the encrypted content (see whiteboard) if (blob && blob.byteLength && typeof(l) === "number" && blob.byteLength > l) { $pv.text(Messages.error); queue.inProgress = false;