Answers for "get uploaded file name in js"

0

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)
});
Posted by: Guest on November-11-2020
0

get uploaded file name

fake_path=document.getElementById('FileUpload1').value
alert(fake_path.split("\\").pop())
Posted by: Guest on December-18-2019
0

js get the filename you uploaded

var fu1 = document.getElementById("FileUpload1");
alert("You selected " + fu1.value);
Posted by: Guest on July-18-2020

Code answers related to "get uploaded file name in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language