meteor-file-collection
meteor-file-collection copied to clipboard
Observers within File-Collection
Hi,
Firstly thanks for File and Job collection packages. Saves us from starting from scratch.
Following is more of a query than an issue.
I was wondering if there is a way within File-Collection (like we do for a Mongo Collection) to have observers trigger callbacks for added, changed or removed file actions. I have read the File-Collection documentation but couldn't find any with this specific information.
I am not sure if this is more related to gridFS than to File-Collection package but it would be helpful if you could let me know the best way to observe for file changes so as to trigger a job ( using job-collection package ofcourse :-) )
Hi, I think you'll find that cursors and observes work the same with file-collection as they do with ordinary Meteor collections. Publish/subscribe and client-side reactivity also work fine. I recommend checking out the combined File/Job sample app: https://github.com/vsivsi/meteor-file-job-sample-app