jquery - get filename from a file input (without c:\fakepath) December 02, 2018 $('#form-upload input[name=\'file\']').val().replace(/\\/g, '/').split('/').pop() Read more