Merge pull request #1899 from theRefugee/patch-1

Update request.md
This commit is contained in:
Pierre-Yves Gérardy 2017-07-12 16:07:38 +02:00 committed by GitHub
commit 196277a96d

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