input type file change event triggered only first time

input type file change event triggered only first time

Hi all,

I have an input field of type file on my form and I want to do some stuff with jquery on the change event.

The problem is that the event gets triggered the first time I select a file after the page get loaded. Then selecting another file does not trigger the event, is this normal ? I have to reload the page before selecting another file and see the event triggered.

Here is the code I use :
$(document).ready(function() {
        $("input[type=file]").change(function() {
                doSomething();
        });
});