Users can upload images on my site using an uploadButton, but I want the image to appear on the screen for review before they submit the screen and put it on the database. What’s the best way to do this?
Add a gallery to the page, then:
$w("#myUploadButton").uploadFiles()
.then(uploadedFiles => {
$w("#gallery1").items = uploadedFiles.map(e => ({type: "image", src: e.url}));
})
Thanks, but it what should the url be?