Hi again I would like to know why like this. When I try to debug my upload button using DEV MODE. When I try to add a selected document it will upload the file automatically using dev mode . But when I try it LIVE it doesn’t work. I need to press the submit button to make it work.
I already try this code but it doesn’t work when I try it live. It only works in Dev mode (preview mode) why is that?
$w("#myUploadButton").startUpload()
.then( (uploadedFile) => {
let url = uploadedFile.url; // "wix:image://v1/68d3a9_1de7529c444b4c9eb38401f8efe0cad2.jpg/flowers.jpg#originWidth=1970&originHeight=1120"
} )
.catch( (uploadError) => {
let errCode = uploadError.errorCode; // 7751
let errDesc = uploadError.errorDescription; // "Error description"
} );
I’m planning also to implement this
Velo Tutorial: Using the Upload Button with Code | Help Center | Wix.com but it only works in preview mode not in live mode.