![]() When Rails 5.2 was released in April 2018 one of the major features added was first-class support for uploading file attachments to models in the form of Active Storage. It included enough helper methods to manage uploads and fairly easy ways of shuffling off data to other storage places like Amazon S3. My favorite was Paperclip, as it was the easiest to understand and met most of the requirements typically needed for uploading files. Each had its own way of handling uploads, and none of them were terribly easy to use. In the Ruby on Rails world, multiple file uploading tools have been used over the years, like Attachment fu, Paperclip, and Carrierwave. When dealing with uploads, one has to consider a multitude of questions: What kinds of file are allowed? How big can the files get? How many can be uploaded and where do you store the files once uploaded? It can be a mess of requirements generated from a simple request. ![]() It is a problem that has been solved many times, but typically not without causing the developer headaches in the process. Many times when developing an application for a customer, the requirement surfaces to handle uploaded files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |