Skip to content
This repository was archived by the owner on May 25, 2023. It is now read-only.
This repository was archived by the owner on May 25, 2023. It is now read-only.

Need some help #17

@yop289

Description

@yop289

Hi, I´m trying to implement your plugIn but I can´t make progressbar work properly with multiple files, I use the following code:

buildUploadRow: function (files, index) {
var file = files[index];
return $(
'' +
'' + file.name + ' - '+ Math.round(file.size/1024) +'kb - </td>' +
'

</td>' +
'' +
'
' +
'Cancel</span>' +
'</div>' +
'</td>' +
'</tr>'
);
},

onProgress:function (event, files, index, xhr, handler) {
var progress = parseInt(event.loaded / event.total * 100, 10);
$(".ui-progressbar").progressbar({value: progress});
},

When I upload 2 files both files have then same progressbar, I know why this happen, But I don't know, how to select the correct progressbar.

$(".ui-progressbar:eq("+index+")").progressbar({value: progress}); This option didn´t work

Can you help me? Thks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions