1

I have an iron:router route declared for when a user tries to download a file:

// File Download Route
Router.route('/download/:file', function () {
   // NodeJS request object
   var request = this.request;

   // NodeJS  response object
   var response = this.response;

  this.response.end('file download content\n');
  }, {where: 'server'}

);

as described in the iron:router docs (http://eventedmind.github.io/iron-router/#server-routing) . The file I pass into the route is the CollectionFS file object(https://github.com/CollectionFS/Meteor-CollectionFS). How do I now get the application to actually trigger the download of the file. Thanks!

Nate
  • 1,875
  • 15
  • 27

0 Answers0