I have very simple form, with input like this:

<input id="my_id" multiple="true" type="file" name="image_name[]" />

Now i have two questions:

  1. how can i count selected files with jQuery or pure JavaScript?
  2. how can i limit file selection to, let's say 10, because now it's infinite?
Edit
Report