Better File Uploads with Shrine: Motivation

This is the 1st part of a series of blog posts about Shrine. In this part I talk about the motivation behind creating Shrine, by going over the limitations of existing file attachment libraries.

Shrine meets Transloadit

When I’m building web applications, a requirement that almost always comes up is that the app needs to accept file uploads. It can be an app with users that have profile images, posts that have cover photos and some additional documents attached, or whole galleries where people can upload many photos or videos.

Improving open-uri

When working on the Shrine library for handling file uploads, in multiple places I needed to be able to download a file from URL. If you know the Ruby standard library well, the solution might be obvious to you: open-uri.