tors / jquery-fileupload-rails

jQuery File Upload integrated for Rails
669 stars 254 forks source link

Cant integrate S3 with javascript file upload using presigned post #77

Closed moayman closed 9 years ago

moayman commented 9 years ago

I have spent days now trying to make this work. I am getting this error

"OPTIONS https://bucketname.s3.oregon.amazonaws.com/net::ERR_NAME_RESOLUTION_FAILED" When trying to upload using javascript file upload. I am using Version 43.0.2357.130 Ubuntu 14.04 (64-bit). Please check my question here http://stackoverflow.com/questions/32040619/rails-amazon-s3-direct-upload-with-jquery-file-uploader

felixbuenemann commented 9 years ago

There is no s3 region called "oregon", it's called us-west-2, check the aws endpoints for the proper bucket url: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

moayman commented 9 years ago

aws Anyway I will try to set it to us-west-2 and let you know if it worked.

felixbuenemann commented 9 years ago

Sorry, I was a bit unclear. There are two "names" for regions on AWS, the technical name, used in URLs and the descriptive name, which is a city. Eg. eu-central-1 and Frankfurt. You have to use the proper endpoint from the link I posted above.

moayman commented 9 years ago

It's totally okay. I just tried it today and it worked well. I was just showing you what I had to my face all time in the console which is really counter intuitive from amazon. Checkout my answer in the stackoverflow question and feel free to up me. Thanks.

felixbuenemann commented 9 years ago

Given that all the questions one could possibly ask are already answered on StackOverflow, I doubt I'll ever reach the 10 credits required to do anything besides reading on SO.