Anyone got a working example of using ruby to post to a presigned URL on s3
A:
Does anything on the s3 library page cover what you need? There are loads of examples there.
Dan Harper - Leopard CRM
2008-09-18 07:25:53
Unfortunately not. And the RUBY S3 Gems don;t support the signed urls
2008-09-18 14:03:53
+1
A:
Can you provide more information on how a "presigned URL" works? Is it like this:
AWS::S3::S3Object.url_for(self.full_filename,
self.bucket_name, {
:use_ssl => true,
:expires_in => ttl_seconds
})
I use this code to send authenticated clients the URL to their S3 file. I believe this is the "presigned URL" that you're asking about. I haven't used this code for a PUT, so I'm not exactly sure if it's right for you, but it might get you close.
Dan Harper - Leopard CRM
2008-09-19 02:21:56
A:
I've managed to sort it out. Turns out the HTTP:Net in Ruby is has some short comings. Lot of Monkeypatch later I got it working.. More details when I have time. thank