2017-08-12 51 views
0

我正在嘗試使用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 –

回答

1

Ostrio:文件是最好的和最新的庫。它被完整記錄並得到很好的支持,當你看到他們的git頁面上的響應時間時,你會看到。我有S3的相機實現,所以如果你卡住了,我可以幫助你,正如我所說的直接支持git是驚人的。

+0

非常感謝Paul。我會試一下! – JB2

相關問題