about finished Function
Immortal86 opened this issue · 0 comments
Immortal86 commented
I followed the doc try to pass data from server back to client.
UploadServer.init({
...
finished(fileInfo, formFields) {
//fileInfo.extraData = "12345676"; //line a
myColletion.find({...}).forEach(function(){
...
fileInfo.extraData = "99999"; //line b
})
}
});
I can get the data setted at line a.
Now i need to do CURD with the data from uploaded file and then send result back to client.
I tried as line b and get nothing...
Any suggestions?
Thanks!