FormData
: Accept object
form in constructor
#387
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
What problem are you trying to solve?
The
FormData
constructor is unergonomic to use for manual construction:It would be nice if it accepts a object form:
What solutions exist today?
URLSearchParams() is a similar interface that gained support for object form in its constructor.
How would you solve it?
Extend the standard.
Anything else?
One drawback is that the
filename
argument toappend
can not be provided in object form, but I think it's a non-issue because users can easily generate namedFile
objects fromBlob
.The text was updated successfully, but these errors were encountered: