I\'m trying to make a file uploader with HTML5 with a progress meter. Here\'s my code:
Test
this is my code and it's work fine for me:
xhr.upload.onprogress = function(e){ var done = e.position || e.loaded, total = e.totalSize || e.total var present = Math.floor(done/total*100) document.getElementById('status').innerHTML = present + '%' }