Hayk Saakian
Hayk Saakian

Reputation: 2036

download folder as zip from s3 carrierwave rails heroku

For a rails app using carrierwave and s3

How do you serve a directory as a zip file? i have

/folder/
 file1.png
 file2.png
 file3.png

When the user goes to /folder.zip they should be downloading a '.zip' file containing the above directory.

Is this something I need to set up with s3? Is it something carrierwave does? Do I need another gem for this?

Upvotes: 3

Views: 1101

Answers (1)

Rafael Oliveira
Rafael Oliveira

Reputation: 2923

A bit late, but I've ran into the same problem.

You might check Downloading and zipping files that were uploaded to S3 with CarrierWave

Upvotes: 1

Related Questions