top of page
Forum Posts
jaredreedjr203
Jun 12, 2020
In Coding with Velo
Hi,
I am having an error as: Failed setting items: TypeError: Cannot read property 'length' of undefined when https://100001.onl/ I apply the following code:
import wixData from 'wix-data';
export function uploadButton1_change(event) {
if($w("#uploadButton1").value.length > 0) {
$w("#uploadButton1").value[0].name};
$w("#uploadButton1").startUpload()
.then( (uploadedFile) => {
wixData.insert("User-GeneratedContent", uploadedFile).then(() => {
$w("#dataset1").refresh();
})
})
}
Please help me out to solve the issue!
Thank you
0
1
209
jaredreedjr203
More actions
bottom of page