Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get uploaded file name in js

$('input[type="file"]').change(function(e) {
        var fileName = e.target.files[0].name;
        $(e.target).parent('div').find('.form-file-text').html(fileName)
  		// Inside find search element where the name should display (by Id Or Class)
});
 
PREVIOUS NEXT
Tagged: #uploaded #file #js
ADD COMMENT
Topic
Name
3+9 =