Tag: amazon-s3

AWS S3 – Ruby – Presigned POST: Content-Type policy failing

问题内容: I am trying to specify the content type of a direct to S3 upload a getting the following 403 error: Invalid according to Policy: Policy Condition failed: [“starts-with”, “$Content-Type”, “”] I have put in everything I could find from other posts on here to no avail. My code: config/initializers/aws.rb Aws.config.update({ region: 'us-east-1', credentials: Aws::Credentials.new(ENV['AWS_ACCESS_KEY_ID'],