I want to get the selected files names from the input element. here is the html element:
<input id="camera-open" type="file" multiple>
and here is jquery i am trying to do:
$('#camera-open').change(function(){
var names = [];
$('input[type=file]').each(function(){
names = $('input[type=file]').val().split('/').pop().split('\\').pop();
});
But it only gives me one file name! Any idea?