FileReader を使用して画像ファイルを表示しようとしているだけですが、複数の画像を使用しようとすると、次の「InvalidStateError: DOM Exception 11」が発生します。ただし、Firefox では正常に動作します。
これが私のコードです
function addImages(images)
{
var reader=new FileReader()
reader.onload=function()
{
$("#images").append('<img src="'+this.result+'"/><br/>')
}
for(var count=0;count<images.length;count++)
{
reader.readAsDataURL(images[count])
}
}
function uploadImagesToBrowser(e)
{
addImages(e.target.files)
}
$("#imagefiles").on("change",uploadImagesToBrowser)