Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Jun 5, 2024

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

closes #130
closes #135

@fengmk2 fengmk2 added the bug Something isn't working label Jun 5, 2024
@fengmk2 fengmk2 marked this pull request as draft June 5, 2024 10:11
Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fengmk2
Copy link
Member Author

fengmk2 commented Jun 5, 2024

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

@fengmk2
Copy link
Member Author

fengmk2 commented Jun 6, 2024

避开 OpenAPI 接入层的 chunk 数量限制

基于 node-modules/formstream#26 实现

closes #130
@fengmk2 fengmk2 marked this pull request as ready for review June 6, 2024 09:44
@fengmk2 fengmk2 added the enhancement New feature or request label Jun 6, 2024
@fengmk2 fengmk2 changed the title fix: 文件上传需要设置 content-length feat: AlipayFormData 支持文件流和文件内容上传文件 Jun 6, 2024
@fengmk2 fengmk2 merged commit 046f4e7 into master Jun 6, 2024
12 checks passed
@fengmk2 fengmk2 deleted the set-content-length branch June 6, 2024 09:48
fengmk2 pushed a commit that referenced this pull request Jun 6, 2024
[skip ci]

## [4.6.0](v4.5.1...v4.6.0) (2024-06-06)

### Features

* AlipayFormData 支持文件流和文件内容上传文件 ([#134](#134)) ([046f4e7](046f4e7))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exec 方法支持 AlipayFormStream alipay.open.file.upload上传超出限制
1 participant