Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with startProgressTimer #28

Open
laertiades opened this issue Sep 8, 2014 · 1 comment
Open

problem with startProgressTimer #28

laertiades opened this issue Sep 8, 2014 · 1 comment

Comments

@laertiades
Copy link

startProgressTimer of the S3MP object isn't working correctly for me. These three lines seem to be the culprit:

          _.each(upload.inprogress,function(val) {
            done += val;
          });

console.dir(upload.inprogress) shows that index 0 is undefined

The files seem to be uploading fine. My progress meter doesn't work however. Any insights would be most welcome. Thanks.

I changed them to:

          _.each(upload.inprogress,function(val) {
            if(!isNaN(val)) done += val;
          });

and now it seems to be working. Is this just me?

@michaelkeenan
Copy link

Thank you! I had the same problem and this fixed it for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants