Learn how to display a selected image and its details before uploading to the server using JavaScript File API.