Javascript CollectionFS中是否有用于文件下载的事件侦听器/回调?
我正在使用存储和下载应用程序中的文件Javascript CollectionFS中是否有用于文件下载的事件侦听器/回调?,javascript,node.js,meteor,gridfs,collectionfs,Javascript,Node.js,Meteor,Gridfs,Collectionfs,我正在使用存储和下载应用程序中的文件 <a href="{{this.url download=true}}">Download</a> 谢谢您正在寻找的是CollectionFS中的transformRead。这是transformWrite的镜像功能 您正在寻找的是CollectionFS中的transformRead。这是transformWrite的镜像功能 如果filecollection是Mongo集合,则可以使用此包添加前后挂钩:如果filecollect
<a href="{{this.url download=true}}">Download</a>
谢谢您正在寻找的是CollectionFS中的transformRead。这是transformWrite的镜像功能 您正在寻找的是CollectionFS中的transformRead。这是transformWrite的镜像功能 如果
filecollection
是Mongo集合,则可以使用此包添加前后挂钩:如果filecollection
是Mongo集合,则可以使用此包添加前后挂钩:
filesCollection.on('download', function(fileObject){
// do stuff
});