javascript - Filereader api image onload event for tiff image format not triggering -
I am using the HTML5 File Reader API to upload an image to the server before uploading the image to the image, But the problem is that when I upload the TIFF format image load image is not triggered, please see the code below
$ ('# file'). ('Change', function (e) {if (window.FileReader) {var reader = new fileReader (); reader.readAsDataURL (e.target.files [0]); reader.onload = function (e) {var Image = new Image; image.src = e.target.result; image .onload = function () {alert ();}}};} else {Warning ('Flarerider API is not supported in your browser, please do not forget to install Firefox, Safari , Chrome or IE 10! ')}});
Comments
Post a Comment