在S3上使用CollectionFS存储文件

问题描述:

我正在尝试使用Meteor,CollectionFS和S3来存储文件。设置我的水桶,设置密钥ID和秘密,并配置store.S3如下:在S3上使用CollectionFS存储文件

var fileStore = new FS.Store.S3('files', { 
     bucket: Meteor.settings.public.storage.bucket 
}); 

但是,每当我试着上传文件,我得到:

Error storing file to the files store: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256. 

有使用CollectionFS设置签名版本/授权机制的任何方式?

+0

使用'流星文件'。它有据可查。以下是S3集成文档:https://github.com/VeliovGroup/Meteor-Files/wiki/AWS-S3-Integration –

Ostrio:文件是最好的和最新的库。它被完整记录并得到很好的支持,当你看到他们的git页面上的响应时间时,你会看到。我有S3的相机实现,所以如果你卡住了,我可以帮助你,正如我所说的直接支持git是惊人的。

+0

非常感谢Paul。我会试一下! – JB2