I am trying to write an ajax uploader using Jquery. In the html I can write a multiple upload field like:
<input type='file' multiple='multiple' name='files[]'>
But, how can I get the values from this field? When I used:
$('input[type='file']').val();
or
$('input[type='file']').attr('value');
I only got the file name for the first file I selected to upload. Is there a way I can get an array containing all files?