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.
Thanks for the module.
I needed to do this:
--- a/js/upload_progress.js
+++ b/js/upload_progress.js
@@ -6,7 +6,7 @@
Drupal.behaviors.upload_progress = {
attach: function (context, settings) {
- jQuery("input[type=submit]", ".file-widget, .image-widget").each(function(el) {
+ jQuery("input[type=submit]", ".file-widget, .image-widget, .form-type-managed-file").each(function(el) {
var ajax = Drupal.ajax[this.id];
ajax.progress.url = undefined;
ajax.options.uploadProgress = function(event, partial, total, percentage) {
To get it to attach to my custom managed file upload fields. Any reason why it shouldn't include this?
Comments
Comment #2
Pierre.Vriens CreditAttribution: Pierre.Vriens at In Petto commentedJust in case it may help as a "motivation" about where this patch originated from: have a look at http://drupal.stackexchange.com/questions/138628/my-pecl-uploadprogress-... ...
PS: good luck @wmnnd to soon (finally) have your sandbox promoted to a full project ... sooooooon!