In modern web images are very essential thing for understanding the content better, so do the image upload. Sometimes we have to preview the image before upload. So the user knows which image they are going to upload to server. In this case we can use this instant preview of image while they select the image as it is not uploading to server. We use FileReader api to show the preview.