commit
196277a96d
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ function upload(e) {
|
||||||
url: "/api/v1/upload",
|
url: "/api/v1/upload",
|
||||||
data: data,
|
data: data,
|
||||||
config: function(xhr) {
|
config: function(xhr) {
|
||||||
xhr.addEventListener("progress", function(e) {
|
xhr.upload.addEventListener("progress", function(e) {
|
||||||
progress = e.loaded / e.total
|
progress = e.loaded / e.total
|
||||||
|
|
||||||
m.redraw() // tell Mithril that data changed and a re-render is needed
|
m.redraw() // tell Mithril that data changed and a re-render is needed
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue