Skip to content

Commit 24c0e53

Browse files
committed
修复秒传或断点续传时取消或删除任务报错的问题
Signed-off-by: Devin <[email protected]>
1 parent 0b96168 commit 24c0e53

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dist/js/Q.Uploader.slice.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/Q.Uploader.slice.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Q.Uploader.slice.js 分片上传
44
5-
* update:2016/10/12 13:59
5+
* update:2017/02/10 11:18
66
*/
77
(function (window, undefined) {
88
"use strict";
@@ -27,6 +27,8 @@
2727
url = task.url,
2828
completed = end == size;
2929

30+
task.xhr = xhr;
31+
3032
url += (url.indexOf("?") == -1 ? "?" : "&") + "action=upload&hash=" + (task.hash || task.name) + "&ok=" + (completed ? "1" : "0");
3133

3234
xhr.upload.addEventListener("progress", function (e) {

0 commit comments

Comments
 (0)