Profile picture (or any file) uploading with Grape + Trailblazer + CarrierWare

Assume that you have a Grape API (in fact it can be a Rails API or anything else, not the point) with something like Angular.JS for the frontend. As a modern Ruby developer you already using (or want to) Trailblazer for business logic encapsulation. And now you need to upload profile picture for the authenticated users. First question is: what to use for pictures uploading? My choice in most cases falls on the known and classic solution in the Ruby community — CarrierWave gem. It is a flexible and powerful library for uploading and processing files with support of various storages.


Profile picture (or any file) uploading with Grape + Trailblazer + CarrierWare #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/profile-picture-or-any-file-uploading-with-grape--trailblazer--carrierware

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles