Skip to content

Commit d1bb465

Browse files
committed
Expose the number of active uploads as .fileupload('active') widget method.
1 parent f4d7c9d commit d1bb465

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js/jquery.fileupload.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload Plugin 5.26.1
2+
* jQuery File Upload Plugin 5.27
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -1121,6 +1121,12 @@
11211121
this._initEventHandlers();
11221122
},
11231123

1124+
// This method is exposed to the widget API and allows to query
1125+
// the number of active uploads:
1126+
active: function () {
1127+
return this._active;
1128+
},
1129+
11241130
// This method is exposed to the widget API and allows to query
11251131
// the widget upload progress.
11261132
// It returns an object with loaded, total and bitrate properties

0 commit comments

Comments
 (0)