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
I have the same code base on both an EC2 instance and a DigitalOcean droplet. Same AWS keys, same bucket, same METEOR_SETTINGS.
Slingshot.fileRestrictions("uploadToAmazonS3",{allowedFileTypes: ["image/png","image/jpeg","image/gif"],maxSize: 1*1024*1024});Slingshot.createDirective("uploadToAmazonS3",Slingshot.S3Storage,{acl: "public-read",authorize: function(){//Deny uploads if user is not logged in.if(!this.userId){constmessage="Please login before posting files";thrownewMeteor.Error("Login Required",message);}returntrue;},key: function(file,metaContext){returnmetaContext.id+"/"+file.name;}});
I have the same code base on both an EC2 instance and a DigitalOcean droplet. Same AWS keys, same bucket, same METEOR_SETTINGS.
Bucket Policy:
Bucket CORS:
The config is basically good because it works on the droplet. What would be different for the app originating on the EC2 instance instead?
The text was updated successfully, but these errors were encountered: