-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fetch): empty filename should not be treated as string (#87)
* fix: empty filename should not be treated as string Co-authored-by: Jacob Ebey <[email protected]> Co-authored-by: Matt Brophy <[email protected]> * chore: fix changeset * chore: add missing WebFormData import * Update packages/fetch/test/request.js --------- Co-authored-by: Edmund Hung <[email protected]> Co-authored-by: Jacob Ebey <[email protected]> Co-authored-by: Matt Brophy <[email protected]> Co-authored-by: Irakli Gozalishvili <[email protected]>
- Loading branch information
1 parent
e156a6e
commit 389c2b8
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@web-std/fetch": patch | ||
--- | ||
|
||
If you create a `FormData` object on the browser with empty file input, a default empty file entry (i.e. `new File([], '')`) would be generated. However, this is currently presented as an empty string instead when you read it on the server. This should fix the discrepancy. |
This file contains 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
This file contains 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