New Discussion

Notifications

You’re not receiving notifications from this thread.

Form ajax upload to s3

0
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.

https://gist.github.com/Frank004/2424f5ddcf742846e9c26a3b82e83277

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
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.