1
I often tried to debug an object instance FormData
, but I cannot see the values stored by the method append
.
I tried that:
f = new FormData();
f.append('name', 'Wallace Maxters');
f.append('image', $('#file').prop('files')[0]);
// tento obter o conteúdo adicionando
f.toString() //"[object FormData]"
console.log(f['name']) // undefined
How can I view the values I have stored inside an object instance FormData
? Is there any way to do that?
How would you remove the "name" value by adding to the example object above?