Closed
Bug 1051825
Opened 10 years ago
Closed 10 years ago
Bug in progress Eventlistener
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1044584
People
(Reporter: peace.mhy, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 (Beta/Release) Build ID: 20140807212602 Steps to reproduce: actually when i can add progress to an ajax upload request with EventListener , but the returned value is not right. Actual results: for example i got the following code xhr.upload.addEventListener('progress', function(event) { console.log(event); var percent = 0; var position = event.loaded || event.position; var total = event.total; if (event.lengthComputable) { percent = Math.ceil(position / total * 100); } options.uploadProgress(event, position, total, percent); }, false); but event.loaded gives the same value every time , till the upload finishes ... as soon as it finishes it gives all the filesize as the loaded once. Expected results: each time it runs it should give the correct value of event.loaded as it was in previous versions
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•