qiniu / dart-sdk

Qiniu Resource (Cloud) Storage SDK for Dart
24 stars 25 forks source link

[qiniu_base_sdk]新增 putBytes & putStream #50

Closed huangbinjie closed 2 years ago

huangbinjie commented 3 years ago

支持 flutter web 上传。

web 平台没法使用 dart:io 包里的 File 对象,提供了 putBytes 对象用于上传 Uint8list 格式的文件

改动

flutter-web 上传成功截图 image

codecov[bot] commented 3 years ago

Codecov Report

Merging #50 (b183134) into master (57d055c) will decrease coverage by 68.76%. The diff coverage is 39.28%.

:exclamation: Current head b183134 differs from pull request most recent head 1fb60af. Consider uploading reports for the commit 1fb60af to get more accurate results

@@             Coverage Diff             @@
##           master      #50       +/-   ##
===========================================
- Coverage   91.79%   23.03%   -68.77%     
===========================================
  Files          27       32        +5     
  Lines         646      725       +79     
===========================================
- Hits          593      167      -426     
- Misses         53      558      +505     
Impacted Files Coverage Δ
...c/storage/methods/put/by_part/init_parts_task.dart 0.00% <0.00%> (-100.00%) :arrow_down:
...orage/methods/put/by_part/put_by_part_options.dart 0.00% <ø> (-100.00%) :arrow_down:
...rc/storage/methods/put/by_part/put_parts_task.dart 0.00% <0.00%> (-98.53%) :arrow_down:
.../storage/methods/put/by_part/upload_part_task.dart 0.00% <0.00%> (-89.48%) :arrow_down:
...storage/methods/put/by_part/upload_parts_task.dart 0.00% <0.00%> (-87.50%) :arrow_down:
...e/methods/put/by_single/put_by_single_options.dart 0.00% <ø> (-100.00%) :arrow_down:
...rage/methods/put/by_single/put_by_single_task.dart 0.00% <0.00%> (-100.00%) :arrow_down:
base/lib/src/storage/methods/put/put_options.dart 0.00% <0.00%> (-100.00%) :arrow_down:
base/lib/src/storage/storage.dart 9.37% <0.00%> (-85.22%) :arrow_down:
base/lib/src/storage/task/request_task.dart 0.00% <0.00%> (-90.79%) :arrow_down:
... and 30 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update de7f6a6...1fb60af. Read the comment docs.

Allenxuxu commented 2 years ago

这个 MR 可以合并了吗,来催一下进度😂

bailyzheng commented 2 years ago

merge了这个分支 发现文件上传不完整,只能上传20M

huangbinjie commented 2 years ago

@bailyzheng 收到,我检查下