waynehoover / s3_direct_upload

Direct Upload to Amazon S3 With CORS
MIT License
652 stars 333 forks source link

region & url undefined methods for S3DirectUpload #136

Open pejmanjohn opened 11 years ago

pejmanjohn commented 11 years ago

I'm attempting to restart my rails server with the configuration specific in the readme.

S3DirectUpload.config do |c| c.access_key_id = "MY-KEY" # your access key id c.secret_access_key = "MY-SECRET" # your secret access key c.bucket = "MY-BUCKET" # your bucket name c.region = nil # region prefix of your bucket url (optional), eg. "s3-eu-west-1" c.url = nil # S3 API endpoint (optional), eg. "https://#{c.bucket}.s3.amazonaws.com/" end

I'm unable to use region or url in my config. With either one I get this error:

config/initializers/s3_direct_upload.rb:4:in block in <top (required)>': undefined methodurl=' for #S3DirectUpload::Config:0x007fb85f395908 (NoMethodError)

mcohen9 commented 10 years ago

i have the same issue