jQuery-File-Upload icon indicating copy to clipboard operation
jQuery-File-Upload copied to clipboard

'change' callback works only for add?

Open klimashkin opened this issue 14 years ago • 2 comments

Hello! I want to know number of added files. I can do this by incremental own array inside change callback. But It does not work when I cancel some files before upload.

Is there a way of solving the problem?

klimashkin avatar Aug 26 '12 14:08 klimashkin

$('table tbody tr').length

Will give you the number of added files at any time. To avoid reading the wrong table give the table an id.

<table id="uploadtable" role="presentation" class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>

and use

$('#uploadtable tbody tr').length

d3xtro avatar Aug 27 '12 19:08 d3xtro

Please read: https://github.com/blueimp/jQuery-File-Upload#support

blueimp avatar Sep 05 '12 10:09 blueimp