Thanks to visit codestin.com
Credit goes to github.com

Skip to content

toFormData helper function#3756

Closed
carpben wants to merge 2 commits into
axios:masterfrom
carpben:master
Closed

toFormData helper function#3756
carpben wants to merge 2 commits into
axios:masterfrom
carpben:master

Conversation

@carpben

@carpben carpben commented Apr 17, 2021

Copy link
Copy Markdown
Contributor

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

carpben commented Apr 17, 2021

Copy link
Copy Markdown
Contributor Author

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

@carpben carpben closed this Apr 17, 2021
@carpben

carpben commented Apr 17, 2021

Copy link
Copy Markdown
Contributor Author

@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.

3 participants