As topic, I want get data:images
after upload. I get that if only upload one image. If multiple images how to array it in console?
constructor(props) {
super(props);
this.state = {
image: null
};
}
onDropMain(mainImage) {
var that = this
let reader = new FileReader()
reader.readAsDataURL(mainImage[0])
reader.onloadend = function() {
var result = reader.result
that.setState({
mainImage: result
});
}
console.log(reader);
}
This is how I get single data:images
, but how about multiple images? Anyone has experience in this?