Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aualdrich
Copy link

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.

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](https://edgeguides.rubyonrails.org/active_storage_overview.html#track-the-progress-of-the-file-upload) for more info.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant