midwayjs / midway

🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈
https://www.midwayjs.org/
MIT License
7.28k stars 568 forks source link

fix: 上传方式为stream时,部分文件内容被截断 #3858

Open ouyanglin886 opened 2 months ago

ouyanglin886 commented 2 months ago
Checklist
Affected core subsystem(s)
Description of change

每日早报.txt 如附件,上传时会被截断

codecov-commenter commented 2 months ago

Codecov Report

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

Project coverage is 84.69%. Comparing base (a3ca53b) to head (014031f). Report is 208 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3858 +/- ## ========================================== + Coverage 84.55% 84.69% +0.14% ========================================== Files 491 501 +10 Lines 46778 47541 +763 Branches 5601 4949 -652 ========================================== + Hits 39551 40266 +715 - Misses 7191 7253 +62 + Partials 36 22 -14 ```

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

czy88840616 commented 2 months ago

目前看修的有点问题,这个地方逻辑有点麻烦,我拿 busboy 发了个新版,可以试一试 @midwayjs/upload@3.17.0-beta.1