Skip to content

Instantly share code, notes, and snippets.

@wegorich
Last active December 21, 2015 12:49
Show Gist options
  • Save wegorich/6308298 to your computer and use it in GitHub Desktop.
Save wegorich/6308298 to your computer and use it in GitHub Desktop.
Override default file picker with jquery - show file name after styling
filepicker.on 'change', 'input[type=file]', ()->
$picker=$(this)
$picker.closest('.filename').html($picker.val().replace(/C:\\fakepath\\/i, ''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment