On 10 July 2014 10:38, Anu Sebastian <li...@ruby-forum.com> wrote:
> in application path public/users/user_list.csv is present. I need to
> upload this CSV file to s3 . Now, in S3 it is storing as text file, not
> as CSV. I am Using paperclip.
>
> file_to_s3 = File.open("public/users/user_list.csv")
> CsvFileStorage.create!("csv" => file_to_s3) return report_name
>
> How can I read & convert this local CSV & upload it to s3.

CSV files *are* just text files.  Comma Separated Values in a text file.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLumuXcxd9A%2BVX1Mi0eDe_7YxBa_RnfRP7rgXthZ5YSNfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to