I'm trying to upload an image from a data collection onto an upload button but I cannot assign to the upload buttons value property. This is the line of code where I try to assign to the value property
$w('#BookerIDphoto').value = results.items.photoId; but I get the error:
'Wix code SDK error: Cannot set property value of UploadButton which has only a getter'
and I know that results.items.photoId has a file because the printed output for it is:
wix:image://v1/16af11_ff4a9cfbc0d24c1fa4c28b726c6791af~mv2.png/71580.png#originWidth=1200&originHeight=630Marble ArchLine 59
Can I set the value property this way. If not, how do I upload a button with an image file from a data collection. What I am trying to do is upload a previously uploaded image back onto the site to give the user the option to change the document.