Skip to content

Instantly share code, notes, and snippets.

@guiliredu
Created April 26, 2016 12:41
Show Gist options
  • Save guiliredu/f46a17fa4bf3dc6f846cbe1ad88a0b9f to your computer and use it in GitHub Desktop.
Save guiliredu/f46a17fa4bf3dc6f846cbe1ad88a0b9f to your computer and use it in GitHub Desktop.
HTML5 File API - Get file name
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