From a5bf7b6e1d0a955f28e21c0d39415dbacb8bf4c4 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 22:20:35 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 8e650a76..699a7bbe 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -470,7 +470,6 @@ // Probably no need to await here anymore //await readFile(el.files[0], el); - let url = URL.createObjectURL(el.files[0]) console.log(el.files[0]) console.log(url) @@ -483,8 +482,9 @@ imageId = "base64://" + base.split(",")[1]; imageId2 = base; } else { + let url = URL.createObjectURL(el.files[0]) imageId = `wadouri:${url}`; - imageId2 = imageId + imageId2 = url } console.log(imageId) const element = $(`
`).get(0)