We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Create a helper that returns your files:
Template.fileList.helpers({ files: function () { return Files.find(); } });
Use the url method with download option in your markup:
url
download
<template name="fileList"> <div class="fileList"> {{#each files}} <div class="file"> <strong>{{this.name}}</strong> <a href="{{this.url download=true}}" class="btn btn-primary" target="_parent">Download</a> </div> {{/each}} </div> </template>