Last active
December 21, 2015 12:49
-
-
Save wegorich/6308298 to your computer and use it in GitHub Desktop.
Override default file picker with jquery - show file name after styling
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
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