Skip to content
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

toFormData helper function #3756

Closed
wants to merge 2 commits into from
Closed

toFormData helper function #3756

wants to merge 2 commits into from

Conversation

carpben
Copy link
Contributor

@carpben carpben commented Apr 17, 2021

With this functionality we can provide the user an option to pass a data object, instead of building FormData by himself. When the data is nested, building form data isn't trivial, and can result in an inappropriate structure and bugs. Hence usage of this functionality seems more reliable.

The function can handle nested data of the following types: object, array, string, number, boolean, null, undefined, Fiile.

Related feature request thread: #3721

This doesn't deal with the API in which this functionality will be offered to the user.

@carpben
Copy link
Contributor Author

carpben commented Apr 17, 2021

Commit was done by mistake with my previous company git user. Let me try again.

@carpben carpben closed this Apr 17, 2021
@carpben
Copy link
Contributor Author

carpben commented Apr 17, 2021

@steph931 I submitted a newer PR #3757 it is identical, but commits are done by my user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants