I am looking to find a way to work through a modern image upload work flow with active storage
Things I am attempting to achive,
- Attach File with a js libary such as Dropzone.js
- Vaildate file size and type
- Crop image using libray such as Cropper.js to achive correct image aspect raito
- Submit file using rails Active Storage
I don't belive there is a guide for this any where and I know for a fact there are a lot of people that are really confused on this topic. Active Storage seems to be very limited with what it will do directly(ie... the fact that there is no validation built into active storage).
Any help in this subject would be great.
I know it's been months, but here's some info in video and code:
If you have the S3 part of the puzzle, please let me know.