0

I am using bootstrap-3, collection-fs and iron-router. I have successfully created a download button before, but since upgrading to iron-router version 1.0.0-pre2, I have not been able to successfully replicate the download button.

<a href="{{this.url download=true}}" class="btn btn-primary">Download</a> 

where this.url provides the url to the file. However iron-router tries to route the entire app to the file location rather then downloading the file. Any thoughts?

Nate
  • 1,875
  • 15
  • 27

1 Answers1

1

Its because the route should be server side route Check out this thread How to serve a file using iron router or meteor itself?

Community
  • 1
  • 1
yoK0
  • 325
  • 1
  • 3
  • 17