I'm the only one who gets the empty formData {} after making an append I'm working with angular 2 the latest version.
let formData: FormData = new FormData()
formData.append('key','value')
console.log(formData)
Result:
FormData { }
FormData
is not plain js object, API link: https://developer.mozilla.org/ru/docs/Web/API/FormData
let data = new FormData();
data.append('key', 'value');
console.log(data.get('key'))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With