All threads / Form ajax upload to s3

Ask A Question


You’re not receiving notifications from this thread.

Form ajax upload to s3

Francisco Quinones asked in Rails

Hi!, So I have a form that was using ajax to post the data to the server, then I add it a img file and the process was taking to long so now I want to do direct upload to s3.

I setup the :

  • aws
  • cors
  • form
  • ajax
  • presigned_post

Im getting this error Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'. I think that my persigned data its not passing correct on the ajax.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 53,130+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    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

    © 2021 GoRails, LLC. All rights reserved.