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:
1 | < input type = "file" id = "inputFile" name = "award_images[]" multiple = "" > |
SCRIPT:
1 2 3 4 5 6 7 | 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