How vue uploads multiple files at a time instead of uploading them one by one

< el-upload

                  class="upload-demo"
                  ref="upload"
                  action="http://add"
                  name="Content"
                  :data="form"
                  :on-remove="handleRemove"
                  :on-error="uploadError"
                  :on-success="uploadSuccess"
                  :multiple="multiple"
                  :file-list="fileList"
                  :on-change="addFile"
                  :auto-upload="false">
              <el-button slot="trigger" size="small" type="primary"></el-button>
              <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload"></el-button>
          </el-upload>

you can convert files to array format in the addFile method, and then transfer these images to FormData, and finally upload them to FormData

let images=[...files]
let _data = new FormData();
images.forEach((img,index) => {
    _data.append(`img_${index}`,img)
})

so: do I need to fill in file-list= "fileList"?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2bf2b-e024.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2bf2b-e024.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?