0

我正在使用 cfs:s3,在此之前我尝试过 cfs:dropbox 来存储图像。当我在本地运行该应用程序时,它运行良好,但是当我在meteor.com 上部署它时,它停止将图像上传到任一平台。

对此有任何已知问题吗?

var imageStore = new FS.Store.S3("playerProfilePictures", {
accessKeyId: "", //required if environment variables are not set
secretAccessKey: "", //required if environment variables are not set
bucket: "mohsinclubimages", //required
transformWrite: createThumb //optional
});


PlayerProfilePictures = new FS.Collection("playerProfilePictures", {
stores: [imageStore]
});

S3 的政策

{
"Version": "2012-10-17",
"Statement": [
    {
        "Effect": "Allow",
        "Action": [
            "s3:ListAllMyBuckets",
            "s3:ListBucket"
        ],
        "Resource": "arn:aws:s3:::*"
    },
    {
        "Action": [
            "s3:PutObject",
            "s3:PutObjectAcl",
            "s3:GetObject",
            "s3:GetObjectAcl",
            "s3:DeleteObject",
            "s3:DeleteObjectAcl"
        ],
        "Effect": "Allow",
        "Resource": [
            "arn:aws:s3:::mohsinclubimages/*"
        ]
    }
]
}
4

0 回答 0