SyntaxFix
Write A Post
Hire A Developer
Questions
$(document).on('change', '.custom-file-input', function (event) { $(this).next('.custom-file-label').html(event.target.files[0].name); })
Best of all worlds. Works on dynamically created inputs, and uses actual file name.