Created
April 26, 2016 12:41
-
-
Save guiliredu/f46a17fa4bf3dc6f846cbe1ad88a0b9f to your computer and use it in GitHub Desktop.
HTML5 File API - Get file name
This file contains 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
document.getElementById("js-input-file").addEventListener("change", function(){ | |
$('#js-input-fake').html(this.files[0].name); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment