-3
<input type="file" name="files" multiple="true"/>

Here I upload 4 files.I want to find the length of files I uploaded using javascript.

rajesh kakawat
  • 10,826
  • 1
  • 21
  • 40
user2709752
  • 488
  • 6
  • 26

1 Answers1

1

Try This method

var numFiles = $("input:file", this)[0].files.length;

http://jsfiddle.net/xvLAc/1/

Mukilan R
  • 445
  • 5
  • 17