开发者

Rails: How can I edit text files stored on Amazon S3?

开发者 https://www.devze.com 2023-01-21 08:18 出处:网络
I\'m using paperclip to upload some text/csv files to an S3 bucket. I need to edit those files occasionally. How can I edit and re-save those?

I'm using paperclip to upload some text/csv files to an S3 bucket.

I need to edit those files occasionally. How can I edit and re-save those?

Before using S3, I was just using File开发者_JAVA百科.open for saving the files, but that throws a "No such file or directory" error now.


File.open opens a file system object. To access S3 you need to connect to the S3 server and issue commands, such as GET.

There are some gems available from the Amazon developer's site which may help.

http://aws.amazon.com/ruby/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号