3 ms·
That was my first thought when I read the headline... API or, hell; just use the CLI directly. Works great, I don't get it. That said, I have no idea what pape
by EpicEng 9y ago
That was my first thought when I read the headline... API or, hell; just use the CLI directly. Works great, I don't get it.
That said, I have no idea what paperclip is and I wouldn't even consider using a framework like rails for such a simple task.
- pmontra 9y agoThe 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.