This is a code snippet that helps to upload the image file and display it to the user using angular js.