Meteor,图像上传在实时网站上不起作用
我正在使用cfs:s3,在此之前,我尝试使用cfs:dropbox来存储图像。当我在本地运行应用程序时,它工作正常,但当我在meteor.com上部署它时,它会停止将图像上传到任何一个平台 有什么已知的问题吗Meteor,图像上传在实时网站上不起作用,meteor,meteor-collections,Meteor,Meteor Collections,我正在使用cfs:s3,在此之前,我尝试使用cfs:dropbox来存储图像。当我在本地运行应用程序时,它工作正常,但当我在meteor.com上部署它时,它会停止将图像上传到任何一个平台 有什么已知的问题吗 var imageStore = new FS.Store.S3("playerProfilePictures", { accessKeyId: "", //required if environment variables are not set secretAccessKey: "",
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/*"
]
}
]
}
有控制台错误吗?没有,我没有收到任何控制台错误。您可以在这里测试表单,我在控制台中收到此警告:
提供的值“undefined”不是XMLHttpRequestResponseType类型的有效枚举值。
尝试上载时,也请检查服务器端日志。我不知道dropbox软件包是如何工作的,它在上传时试图做什么。我已经用s3商店取代了dropbox商店。我将编辑问题以包含代码。我在本地机器上也收到了此警告。