From 9b6ec10a9354a0f848609b97c014a1ba4108851d Mon Sep 17 00:00:00 2001 From: theRefugee Date: Wed, 12 Jul 2017 15:20:43 +0200 Subject: [PATCH] Update request.md --- docs/request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/request.md b/docs/request.md index 3277c378..fe962e50 100644 --- a/docs/request.md +++ b/docs/request.md @@ -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