Go + Revel Framework: Asynchronously Resizing and Uploading Images to S3
Just a memo for myself.
Overview
There are so many Go libraries for AWS out there that it was hard to tell which one to use, so I decided to go with the canonical launchpad.net/goamz/aws for the implementation.
Controller
- app/controllers/img.go
Component
I turned the image upload part into a component.
- app/utility/aws.go
Views
- Views/Img/Index.html
- public/js/ajax.js
- public/js/jquery.uploadThumbs.js
Go + Revel Framework: Asynchronously Resizing and Uploading Images to S3
https://kenzo0107.github.io/en/2017/08/09/go-revel-upload-to-s3/