Posted in 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.
Posted in Rich text format editor in rails 4
Seems like Trix is having a lot of problems and lack of support for image and image uploading, I have personally ran into a bunch of diffrent issues with Trix and it seems their core does not want to implement a lot of nessacary features such as image orantation and image resizing.
There really dosent seem to me good documentation any where on how to crop images with active storage, I know it can be done just seems pretty complex and would be a cool video
Here is a link to an app I built showcaseing the issue,
Any help would be great I opened an issue on at.js's github.
How can I pass the .url(public: true) to a link that is being dynamicly added to the page?
Posted in Sortable Drag and Drop Discussion
Maybe try jus calling the ('#this-id').sortable
and dropping the class from that call.
How can this been done for live direct upload? I watched the aws direct videos but my JS skills arent strong enough to get it to work https://github.com/cgibsonmm/Sprout-Free