motor-admin / motor-admin-rails

Low-code Admin panel and Business intelligence Rails engine. No DSL - configurable from the UI. Rails Admin, Active Admin, Blazer modern alternative.
https://app.getmotoradmin.com/demo/
MIT License
767 stars 77 forks source link

Add support for progress bars on Active Storage Direct Uploads #175

Open aualdrich opened 2 months ago

aualdrich commented 2 months ago

Active Storage Direct Upload attachments will now use a progress bar instead of the spinner to better indicate progress when uploading large files.

Non-Active Storage methods will still use the spinner as always.

I refactored the direct uploading functionality into its own utility class. This is for tidyness but also because that's the only way that the DirectUpload module allows implementing progress. See here for more info.