You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]'
The text was updated successfully, but these errors were encountered:
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
formatter will return such FormData
The text was updated successfully, but these errors were encountered: