You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: BadRequestAn error occurred when parsing the HTTP request POST at '/'/3795b201-44ae-4429-b3a8-6b5fbf98db90
My code:
```Slingshot.createDirective("myFileUploads", Slingshot.S3Storage, {
bucket: "dev",
acl: "public-read",
storageClass: 'REDUCED_REDUNDANCY',
AWSAccessKeyId: "dwO0cf1o8ooSIFo3",
AWSSecretAccessKey: "kbjlv2YZiOZYBdChn9v18cxXGcGmv7Zg",
bucketUrl:"http://127.0.0.1:9000",
authorize: function () {
//Deny uploads if user is not logged in.
if (!this.userId) {
var message = "Please login before posting files";
throw new Meteor.Error("Login Required", message);
}
return true;
},
key: function (file) {
//Store file into a directory by the user's username.
var user = Meteor.users.findOne(this.userId);
return user.username + "/" + file.name;
}
});
The text was updated successfully, but these errors were encountered:
Error:
BadRequest
An error occurred when parsing the HTTP request POST at '/'/3795b201-44ae-4429-b3a8-6b5fbf98db90My code:
The text was updated successfully, but these errors were encountered: