This component is used for upload and display image.
It is working in traditional web app.
using JavaScript to display image at time upload.
Javascript Code :
$(function() {
$(".ImgUploader").on("change", function()
{
var files = !!this.files ? this.files : [];
if (!files.length || !window.FileReader) return; // no file selected, or no FileReader support
if (/^image/.test( files[0].type)){ // only image file
var reader_1 = new FileReader(); // instance of the FileReader
reader_1.readAsDataURL(files[0]); // read the local file
reader_1.onloadend = function(){ // set image data as background of div
debugger;
$(".ImgPreview").attr("src",this.result);
}
});
Just upgrade the version in OS 11