alipay / alipay-sdk-nodejs-all

支付宝开放平台 Alipay SDK for Node.js
https://docs.open.alipay.com/54/103419/
Other
407 stars 64 forks source link

feat: AlipayFormData 支持文件流和文件内容上传文件 #134

Closed fengmk2 closed 4 months ago

fengmk2 commented 4 months ago

fix: 设置文件上传分片 chunk 最小为 2MB, 避开 OpenAPI 接入层的 chunk 数量限制 基于 https://github.com/node-modules/formstream/pull/26 实现

closes https://github.com/alipay/alipay-sdk-nodejs-all/issues/130 closes https://github.com/alipay/alipay-sdk-nodejs-all/issues/135

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.97%. Comparing base (47120c6) to head (6fe1ee7). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #134 +/- ## ========================================== + Coverage 92.77% 92.97% +0.20% ========================================== Files 7 7 Lines 1370 1409 +39 Branches 185 193 +8 ========================================== + Hits 1271 1310 +39 Misses 99 99 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

fengmk2 commented 4 months ago

让 FormStream 支持 Chunk 数量方式实现。

fengmk2 commented 4 months ago

https://github.com/node-modules/formstream/pull/26