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}`; }