This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = window.URL || window.webkitURL; | |
// Change inputFileID with your own | |
document.getElementById("inputFileID").onchange = function() { | |
if ( this.disabled ) { | |
// File upload not allowed | |
console.log( 'Your browser does not support File upload.' ); | |
} else { | |
var fileChosen = this.files[0]; | |
var image = new Image(); | |
image.onload = function() { |
NewerOlder