Skip to content

nested FormData #262

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

Closed
grewar opened this issue Jun 3, 2021 · 2 comments · Fixed by #263
Closed

nested FormData #262

grewar opened this issue Jun 3, 2021 · 2 comments · Fixed by #263
Assignees
Labels
bug Something isn't working

Comments

@grewar
Copy link

grewar commented Jun 3, 2021

HttpClient has FormData formatter, which transforms request body to FormData object if ContentType set to 'multipart/form-data'
The problem is that formatter can't handle nested objects in body.
For example, if you have such object

{
    foo: '123',
    bar: {
        a: 'a',
        b: 'b'
    }
}

formatter will return such FormData

foo: '123'
bar: '[object Object]'
@js2me js2me self-assigned this Jun 3, 2021
@js2me
Copy link
Member

js2me commented Jun 3, 2021

Hello @avlnche64 !
Thanks for this issue
It will be fixed in next release

@js2me js2me added the bug Something isn't working label Jun 3, 2021
@js2me js2me mentioned this issue Jun 4, 2021
@js2me js2me linked a pull request Jun 4, 2021 that will close this issue
@js2me js2me closed this as completed in #263 Jun 4, 2021
@js2me
Copy link
Member

js2me commented Jun 4, 2021

Should be fixed in 9.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants