Thursday, April 21, 2016

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?
  
We can find above topics solutions in below code.


<input type="file" id="inputFile" name="award_images[]" multiple />

<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);
    }
});
</script>

No comments :

Post a Comment