diff options
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/luci.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js index 9d472dedc0..a9ddccf359 100644 --- a/modules/luci-base/htdocs/luci-static/resources/luci.js +++ b/modules/luci-base/htdocs/luci-static/resources/luci.js @@ -378,6 +378,9 @@ contenttype = opt.headers[header]; } + if ('progress' in opt && 'upload' in opt.xhr) + opt.xhr.upload.addEventListener('progress', opt.progress); + if (contenttype != null) opt.xhr.setRequestHeader('Content-Type', contenttype); |