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)