paper clip aws s3

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.

Please help.

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

Colin