Inserting Images to Media Gallery Field through Corvid

Hello everyone !!
To be frank, I accidently deleted my recent post about the same topic… (Tip - I am not re-posting it)

I am having a doubt here →
There is only 1 upload button in my page…
After the 1st submit button is clicked the image get uploaded (not inserted).
Then the user can upload another image in the same upload button…

After this is completed there is a main submit button for inserting all these images to the media gallery field in the database…

(I don’t want multi-file upload button …)

How can I achieve the above ??
Thanks…

1 Like

No problem, I found the code !!

let value = [];
$w('#button').onClick((event) => {
  $w('#uploadButton1').startUpload()
        .then((uploadedFile) => {
            value.push({ "slug": "Title", "src": uploadedFile.url, "title":          "title", "type": "image" });
            $w('#uploadButton1').reset();
            console.log(value);
        });
});

how i can insert this to particular row not inserted as new row