Title: JQuery Multi File event not firing
Tags: javascript;jquery-plugins
Question: I have the following code in aspx

```<input id="fileControl" type="file" class="multi" name="fileControl"/&gt;
```

and 

``` $(document).ready(function () {
        var fileSelections = [];  
         $('#fileControl').MultiFile({

            onFileAppend: function () {
                //$('#F9-Log').append('<li&gt;onFileAppend - '+value+'</li&gt;')

                fileSelections.push(value);
            },
            onFileSelect: function () {

                fileSelections.push();
            },
            afterFileSelect: function () {

                fileSelections.push();
            },
            afterFileAppend: function () {

                fileSelections.push();
            }

        });

    }); 
```

I have added the following files as part of jQuery multifile plugin

```jquery.MetaData.js
jquery.MultiFile.js
jquery.MultiFile.pack.js
```

But when I add or remove a file the events are not fired. Why is this?



Here is another answer: I ran into this same issue and the problem is that if you want to subscribe to events, you can't set the class in the input element.

So, your input element should look like this:
```<input id="fileControl" type="file" name="fileControl"/&gt;```

Then it should work.

I imagine this isn't an issue for you anymore, but in case this is ever needed by anyone else.


Here is another answer: Just seen this.... have updated the documentation accordingly
http://www.fyneworks.com/jquery/multiple-file-upload/

I can hardly find the time to keep the docs up to date, but this is a huge issue (the reason behind most support queries I receive) so thanks for pointing it out!


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2012:00:07/23/12', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<javascript><jquery-plugins>', 'Title': 'JQuery Multi File event not firing', 'ViewCount': 1632, 'id': 11608083, 'user_AboutMe': '', 'user_AccountId': 1680951.0, 'user_DisplayName': 'Girish', 'user_Reputation': 33.0, 'user_Views': 3.0, 'user_id': 1545193.0}}