File tree Expand file tree Collapse file tree 3 files changed +18
-15
lines changed
lib/src/storage/methods/put/by_part Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.6.1
2
+
3
+ - 修复分片上传中断恢复后文件内容出错的问题
4
+
1
5
## 0.6.0
2
6
3
7
- 更新 uuid 到最新版本,对 Flutter SDK 的最低版本要求提升到 3.0
Original file line number Diff line number Diff line change @@ -140,21 +140,20 @@ class UploadPartsTask extends RequestTask<List<Part>> with CacheMixin {
140
140
// partNumber 按照后端要求必须从 1 开始
141
141
final partNumber = ++ _uploadingPartIndex;
142
142
143
- // 跳过上传过的分片
144
- final uploadedPart = _uploadedPartMap[partNumber];
145
- if (uploadedPart != null ) {
146
- _sentPartCount++ ;
147
- _sentPartToServerCount++ ;
148
- notifySendProgress ();
149
- notifyProgress ();
150
- continue ;
151
- }
152
-
153
143
await for (var bytes in resource.stream) {
154
- final future =
155
- _createUploadPartTaskFutureByPartNumber (bytes, partNumber);
156
-
157
- taskFutures.add (future);
144
+ // 跳过上传过的分片
145
+ final uploadedPart = _uploadedPartMap[partNumber];
146
+ if (uploadedPart != null ) {
147
+ _sentPartCount++ ;
148
+ _sentPartToServerCount++ ;
149
+ notifySendProgress ();
150
+ notifyProgress ();
151
+ } else {
152
+ final future =
153
+ _createUploadPartTaskFutureByPartNumber (bytes, partNumber);
154
+
155
+ taskFutures.add (future);
156
+ }
158
157
break ;
159
158
}
160
159
}
Original file line number Diff line number Diff line change 1
1
name : qiniu_sdk_base
2
- version : 0.6.0
2
+ version : 0.6.1
3
3
homepage : https://github.com/qiniu/dart-sdk
4
4
description : The sdk basic of Qiniu products
5
5
You can’t perform that action at this time.
0 commit comments