image,onload event not working in chrome
问题 I'm using html5 to create drag and drop image upload functionality. This works great for me in firefox but in chrome the image onload event only fires the first time. If I drag multiple images in only the first works and if I drag a second in it fails. I believe the problem is with the image onload. here is the way my code works I have removed the irrelevant sections: var img = document.createElement("img"); var reader = new FileReader(); var canvas = document.createElement("canvas"); var