js get image from file input code example
Example 1: javascript clear file input
document.getElementById("myFileInputID").value = null;
Example 2: how to display image in html from json object
for (var i = 0; i < boldStuffs.length; i += 1) {
var fruit = getRandomItem(fruitsArray);
boldStuffs[i].innerHTML = fruit.name + '<img src="'+fruit.image+'">';
}