Update request.md

This commit is contained in:
theRefugee 2017-07-12 15:20:43 +02:00 committed by GitHub
parent 2182a629b2
commit 9b6ec10a93

View file

@ -329,7 +329,7 @@ function upload(e) {
url: "/api/v1/upload",
data: data,
config: function(xhr) {
xhr.addEventListener("progress", function(e) {
xhr.upload.addEventListener("progress", function(e) {
progress = e.loaded / e.total
m.redraw() // tell Mithril that data changed and a re-render is needed