You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.
You can set any additional properties on your file object before inserting. To avoid conflicts with built-in properties and method names, you may want to group them in one object property, like metadata. For example,
with a file input:
Template.myForm.events({'change .myFileInput': function(event,template){FS.Utility.eachFile(event,function(file){varnewFile=newFS.File(file);newFile.metadata={foo: "bar"};Images.insert(newFile,function(err,fileObj){//If !err, we have inserted new doc with ID fileObj._id, and//kicked off the data upload using HTTP});});}});