tomitrescak/meteor-uploads

about finished Function

Closed this issue · 0 comments

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!