From fe72b77f8992dbc260c4412d797b8b195130f1bb Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 21:59:06 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 1cec3193..9c2f5bdb 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -479,7 +479,8 @@ let imageId; if (el.files[0].type.startsWith("image")) { imageId = `${url}`; - imageId = await blobToBase64(el.files[0]); + base = await blobToBase64(el.files[0]); + imageId = "base64://" + base.split(",")[1]; } else { imageId = `wadouri:${url}`; }