Forum: Ruby on Rails multiple file upload to amazon s3 using jquery file upload rails app

Posted by Sahil Shah (Guest)
on 2012-11-28 11:18
(Received via mailing list)
Hi All,

I am a newbie. I am
following 
http://railscasts.com/episodes/383-uploading-to-am...
to upload file.

I am able to upload single file with carrierwave.

But I got 403(Forbidden) error when I try to upload multiple files using
jquery file upload.

When I try to upload single/multiple file I get alert box saying failed 
to
upload and in console it says "Failed to load resource: the server
responded with a status of 403 (Forbidden)" and "XMLHttpRequest cannot 
load
https://xyz.s3.amazonaws.com/. Origin http://localhost:3000 is not 
allowed
by Access-Control-Allow-Origin."

What do I need to do to fix this?

Thank you
Posted by Jordon Bedwell (Guest)
on 2012-11-28 12:52
(Received via mailing list)
On Tue, Nov 27, 2012 at 4:02 PM, Sahil Shah <sahil.shah288@gmail.com> 
wrote:
> When I try to upload single/multiple file I get alert box saying failed to
> upload and in console it says "Failed to load resource: the server responded
> with a status of 403 (Forbidden)" and "XMLHttpRequest cannot
> loadhttps://xyz.s3.amazonaws.com/. Origin http://localhost:3000 is not
> allowed by Access-Control-Allow-Origin."

You need to contact AWS and consult their docs.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.