Repository navigation
fix: continue to the next File param after an array-src File param - #1569
Merged
Merged
Conversation
…aram The multi-file branch of the form-data file loader called the outer presend done instead of the eachSeries callback, so File params after an array-src one were never loaded and no warning was emitted. Co-Authored-By: Claude <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (34.10%) is below the target coverage (35.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1569 +/- ##
===========================================
+ Coverage 77.66% 77.72% +0.06%
===========================================
Files 51 51
Lines 4369 4369
Branches 1234 1234
===========================================
+ Hits 3393 3396 +3
+ Misses 732 730 -2
+ Partials 244 243 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude <[email protected]>
Co-Authored-By: Claude <[email protected]>
Contributor
Author
|
@appurva21 Added the changelog entry under |
appurva21
previously approved these changes
Oct 21, 2026
# Conflicts: # CHANGELOG.yaml
scriptonist
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
When a form-data File param has an array
src, the multi-file branch ofaddFormParamsFilecalled the outer presenddone()instead of theeachSeriescallback. The remaining File params of the request were never loaded and no warning was emitted, so a second File field went out as an empty part.Summary
callback()in the multi-file branch (both the error path and the success path), so the next File param is loaded.srcfields, an unresolved arraysrcfollowed by a later field (warns once, later file sent), a string/array/string mix, and an array followed by an empty array.Breaking changes
None.
Dependencies
None.
Test plan
test/integration/file-uploads/multi-file-params.test.js: 5 tests. With the fix reverted all 5 fail; with it they pass.