Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a form that has several file upload fields. How can I make it so that there is a progress bar for concurrent uploads?
Thanks!
Comments
Comment #1
Heihachi88 CreditAttribution: Heihachi88 commentedHave the same issues with 7.x-2.3 and 7.x-2.x-dev
Comment #2
b3nji CreditAttribution: b3nji commented@Perusio, would you be able to kindly help with this? Thank you.
Comment #3
b3nji CreditAttribution: b3nji commentedUpon further investigation, the upload progress bar is there for additional fields but just not visible. Whereas the first progress bar element is set to "display:inline" when the upload button is clicked, this does not appear to be done with subsequent uploads.
My workaround is to set the following in css:
.form-managed-file div.ajax-progress-bar {
display:inline;
}
Comment #4
b3nji CreditAttribution: b3nji commentedOK the progress bars are visible for multiple fields BUT there is a bug. The progress bar for subsequent uploads is showing the TOTAL size of all concurrent uploads.
E.g.
File upload 1: Size is 50 MB. Progress bar shows correctly "Uploading % of 50MB"
File upload 2: Size is 25 MB. Progress bar shows "Uploading % of 75MB"
Any ideas on this?
Comment #5
b3nji CreditAttribution: b3nji commentedComment #6
MustangGB CreditAttribution: MustangGB commentedI can't reproduce this issue, although I do have the #1220826-5: Not working when multiple values is allowed for file field patch applied, maybe this will solve your problem.