Created
February 25, 2024 22:57
-
-
Save Gusase/456a59c8ab21ed628e0b0533eb55aa52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showPreview(event){ | |
if(event.target.files.length > 0){ | |
var src = URL.createObjectURL(event.target.files[0]); | |
var preview = document.getElementById("file-ip-1-preview"); | |
preview.src = src; | |
preview.style.display = "block"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment