Upload CSV stream from Ruby to S3
问题 I am dealing with potentially huge CSV files which I want to export from my Rails app, and since it runs on Heroku, my idea was to stream these CSV files directly to S3 when generating them. Now, I have an issue, in that Aws::S3 expects a file in order to be able to perform an upload, while in my Rails app I would like to do something like: S3.bucket('my-bucket').object('my-csv') << %w(this is one line) How can I achieve this? 回答1: You can use s3 multipart upload that allows upload by