I want to select all images
state = {
file: null
}
handleFile(e) {
let file = e.target.files
this.setState({ file: file })
console.log('handle file:', file)
}
if i use index like this, then i can only upload single image
let file = e.target.files[0]
but i want to select all index at once and upload it ! i can upload multiple images with POSTMAN but not react.
this is the index which i want to select all at once
i want to select all index and use it in within
let file = e.target.files <----here
not like this !
let file = e.target.files[0] or [1] or [2] ....
how to select all index at once ? thank you in advance :)