Multiple file upload to amazon s3 using jquery file upload rails app

Hi All,

I am a newbie. I am
following
http://railscasts.com/episodes/383-uploading-to-amazon-s3?view=comments
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

On Tue, Nov 27, 2012 at 4:02 PM, Sahil S. [email protected]
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs