I added this after the wixData.insert but it still is not working
what am I doing wrong here?
if ($w( “#upload” ).value.length > 0 ) {
console.log( "Uploading " + $w( “#upload” ).value[ 0 ].name + “- Please wait.” );
$w( “#upload” ).startUpload()
.then( (uploadedFile) => {
console.log( “Upload successful. File is available here:” );
console.log(uploadedFile.url);
const userNda ={upload: uploadedFile}
wixData.update( ‘nda’ , userNda );
console.log( “Updated” );
})
}