var form_data = new FormData();form_data.append('file', file); for (var key of form_data.entries()) { console.log(key[0] + ', ' + key[1]);}