Hi guys, I have this code:
for (let i = 0; i < fileInput1.value.length; i++) {
await upload.trigger({
additionalScope: {
fileBase64: fileInput1.value[i].base64Data,
fileName: "testname" + [i] + ".pdf",
},
onSuccess: function (data) {
insert.trigger({
additionalScope: {
dateiname: data.url,
dateiurl: data.name,
}
})
},
});
}
I am once triggering the query upload, and once the query insert. However I want the loop to wait for the query insert to finish before it starts over, how do I achieve that?