Zipping Files

Episode #385 by Teacher's Avatar David Kimura

Summary

In this episode, we have a look at three different methods of zipping Active Storage files and sending the zipped file to the end user. Each approach has its own benefits and the best approach will depend on your use case.
rails model active storage 27:21

Chapters

  • Introduction (0:00)
  • Creating the scaffold (2:16)
  • Chaging database to postgresql (4:03)
  • docker-compose for external services (4:20)
  • Configuring Active Storage (5:26)
  • Updating database.yml (6:09)
  • Setting up routes (6:36)
  • Zipping files - Method #1 (8:53)
  • Method #1 - Demo (13:00)
  • Zipping files - Method #2 (15:47)
  • Method #2 - Demo (18:45)
  • Zipping files - Method #3 (19:55)
  • Demo - Method #3 (25:29)
  • Final Thoughts (25:56)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams