When you create a cfs object, you usually want to save it _id, for example:
let imageId = Images.insert file
or
Images.insert file, (err,fileObj) ->
let imageId = fileObj._id
cfs may take some time to finish downloading the file, but the URL is not available until the download is complete.
let url = fileObj.isUploaded() ? fileObj.url() : null
In a flame that might look like this:
{{#if this.isUploaded}}
<a href="{{this.url}}">download the file</a>
{{else}}
{{> progress}}
{{/if}}
Finally, as the cfs project gets less attention, you can switch to edgee: slingshot
source
share