Question and answer is powered by AnsPress.io
I trying to upload file using html input file.I want to get the file name using jquery.How can i get the name or details of file using jquery?
Just use the simple code
var filename = $('input[type=file]').val().split('\').pop();