Skip to content

Commit b387f16

Browse files
committed
Fix progress bar in recent browers
1 parent 825f2ff commit b387f16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileshack/static/fileshack/js/models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var Item = new Class({
146146
this.xhr.upload.addEventListener('progress', function(e) {
147147
if (!this_.size_total) this_.set('size_total', e.total);
148148
if (!len) len = this_.size_total;
149-
this_.set('size', offset + e.position/e.total*len);
149+
this_.set('size', offset + e.loaded/e.total*len);
150150
}, false);
151151

152152
this.xhr.upload.addEventListener('load', function(e) {

0 commit comments

Comments
 (0)