Cepheaus Chee


360 Experience
3 Lessons Completed
0 Questions Solved


Posted in Direct File Uploads to S3: Part 3 Discussion

Hi Chris, I'm currently facing some issues with the request of the presign field (around the 14 min mark of your video). My error is a 403 (forbidden) error, and my presign data seems to be different from yours.

I understand Shrine has changed a bit. As a result, my presign output is similar to:

  "method": "put",
  "url": "https://my-bucket.s3.eu-central-1.amazonaws.com/cache/my-key?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIMDH2HTSB3RKB4WQ%2F20180424%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20180424T212022Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=1036b9cefe52f0b46c1f257f6817fc3c55cd8d9004f87a38cf86177762359375",
  "fields": {},
  "headers": {}

(taken from docs)

which I believe is causing the error? Is there a way to fix this?

Thank you

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.