3 ms·
The premise of the post is having a Rails application with a User model and the requirement of letting users upload profile pictures to S3. The post should not
by pmontra 9y ago
The premise of the post is having a Rails application with a User model and the requirement of letting users upload profile pictures to S3. The post should not be much interesting outside Rails development.
The question is why doing it by base64 encoding those images through the GraphQL API, but not all tutorials show useful examples.
BTW, paperclip is a gem that allows to add files to a model, with extensions to handle several backends (S3 among them) and process those files (convert formats, crop images with frontend integration, etc). It's probably the oldest gem in that genre, the main alternative being Carrierwave.
- EpicEng 9y agoYeah that's fair, I should have... read the article.