[Vuejs]-FormData empty from multi image uploader

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); 
    }

Leave a comment