阅读背景:

如何使用文件系统的createReadStream与Meteor路由器(NodeJS)

来源:互联网 

I need to allow the user of my app to download a file with Meteor. Currently what I do is when the user requests to download a file I enter into a "fileRequests" collection in Mongo a document with the file location and a timestamp of the request and return the ID of the newly created request. When the client gets the new ID it imediately goes to mydomain.com/uploads/:id. I then use something like this to intercept the request before Meteor does:I need to allow the user of my app to download




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: