6

I have an external application uploading a file to my rails web app. (Developed on Heroku, but that's not completely relevant)

I need to upload that file to AWS. I've successfully connected to AWS with rails, but I can't figure out how to access the file that was uploaded.

I know I need to do File.open({path to file}), then pass the File to AWS

1 Answer 1

6

I forgot to set the multipart enctype in my test external application...if anyone else has this same problem this code should work:

AWS::S3::S3Object.store('{filename.ext_for_aws}',params[:{name_from_post}],'{bucket}')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.