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
});