Can't pass File object to a Meteor method


I noticed if I have a File object (created from initiating a file upload), if I pass the file object as an argument to a Meteor method, the method sees it as undefined for some reason. Is there a way to pass this to a method so that a package such as edgee:slingshot can use it properly?


I believe all arguments to methods need to be EJSONable. Perhaps that’s the issue?


That very well may be the case. So I may just have to find another way to accomplish what I’m trying to do.


I found this out when trying to pass a method a mongo document that had a transform on it to provide some utility methods. All the functions got stripped but the data was still there. Took a while to work it out! :confused:


Take this as example