Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

Adding to collections

Rhys Bartels-Waller edited this page May 11, 2015 · 1 revision

On Client

When you need to add files client-side, always call myFSCollection.insert as the chunked upload will be handled automatically. Inserting the FS.File server side via a Meteor.method call will not work since only the file info and not the actual data has been transferred.

On Server

Calling insert on the server should be done only when you have the file somewhere on the server filesystem already or you're generating the data on the server.

Path

Remote URL

Stream

Buffer