0👍
You can’t directly print the values of formData. You need to use the following code to print the values.
Just try out the following code and let me know.
let fd = new FormData();
let x, fileCount = this.fileList.length;
let self = this;
for (x = 0; x < fileCount; x++) {
fd.append(this.fileList[x]['name'], this.fileList[x]);
}
// Display the values
for (var value of fd.values()) {
console.log(value);
}
- [Vuejs]-VueJS "npm run build" will not create a index file in dist
- [Vuejs]-Passing data to components which are deactivated mode in vuejs
Source:stackexchange.com