Problem with uploading pictures on js

how do native js upload pictures in the form of an array? the background requirement is an array

clipboard.png

clipboard.png

Mar.05,2021
The files in

input is itself an array of file objects


if you get several file objects, you can integrate them into the array you want in the background, for example:

// name '1.png', '2.png'
let icon = [];

//   
// 
icon.push(file.name);
Menu