Update request.md
This commit is contained in:
parent
2182a629b2
commit
9b6ec10a93
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue