vsivsi / meteor-file-collection

Extends Meteor Collections to handle file data using MongoDB gridFS.
http://atmospherejs.com/vsivsi/file-collection
Other
159 stars 37 forks source link

How to create a downloadable link #123

Closed timothyarmes closed 8 years ago

timothyarmes commented 8 years ago

Hi,

This question isn't directly related to meteor-fie-collection, but I can think of no better place to ask it since I expect many of you will have had this issue.

I have files store in grids, uploaded using this project. Now I wish to provide a download link:

<a href="/files/<id>">file</a>

The problem is that as soon as I click on it, FlowRouter takes change and says that there's no route defined. Which is true of course.

How can I force a GET?

timothyarmes commented 8 years ago

Ah, found it:

<a href="/files/<id>" rel="external">file</a> 
vsivsi commented 8 years ago

Ya, it's not intuitive, just one of those things you gotta know.