jQuery- get multiple image's file name on browse image

Topic 1. jQuery- get multiple image's file name on browse image

Topic 2. How can I get file's name on browse the image?

Solution:

We can find above topic's solution in below code.

HTML:

 

SCRIPT:

 
jQuery("#inputFile").change(function (event) {
   var files = event.target.files;
    for(var i=0; i < files.length; i++) {
        var f = files[i];
        alert(f.name);
    }
});

No comments:

Post a Comment