No errors, just that the parameter is always return the first value.
I have a js like this
function go() {
for (let i = 0; i < fileDropzone.files.length; i++) {
let x = { data: fileDropzone.value[i],...fileDropzone.files[i] }
apiUploadFile.trigger({ additionalScope: { i: i,d: x },
}
}
return go()
on my apiUploadFile Rest API Resources end, I can make use of {{i}} to loop through the array.
But if I create another js that trigger when the API Successful event, I can't access the {{i}} any more