-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
regression: undefined fileBuffer in getUploadFormData when onFile is called before onField #34091
base: release-7.1.0
Are you sure you want to change the base?
Conversation
Signed-off-by: Abhinav Kumar <[email protected]>
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-7.1.0 #34091 +/- ##
=================================================
+ Coverage 75.75% 75.79% +0.03%
=================================================
Files 510 512 +2
Lines 22078 22169 +91
Branches 5387 5397 +10
=================================================
+ Hits 16726 16803 +77
- Misses 4706 4713 +7
- Partials 646 653 +7
Flags with carried forward coverage won't be shown. Click here to find out more. |
} | ||
}); | ||
|
||
it('should return fields without errors when no file is uploaded but fileOptional is true', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add cases for:
- file uploaded & fileOptional true
- file uploaded with many extra fields
Proposed changes (including videos or screenshots)
This PR addresses a regression in the
getUploadFormData
function where field events are processed after file events, causing the file buffer to becomeundefined
. This leads to intermittent request failures when processing uploads.Issue(s)
Steps to test or reproduce
Further comments
CORE-843