I have following html code for upload file
<div class="form-group">
<label class="col-sm-2 control-label" for="inputPassword3">Attach Files: </label>
<div class="col-sm-10">
<div id="filediv">
<input name="file[]" type="file" id="file" />
</div>
<input type="button" id="add_more" class="upload" value="Add More
Files" />
</div>
</div>
And js
$('#add_more').click(function () {
$(this).before($("<div/>", {
id: 'filediv'
}).fadeIn('slow').append($("<input/>", {
name: 'file[]',
type: 'file',
id: 'file'
}), $("<br/>")));
});
Now I want to validate each file Size which is max 3 MB uploaded on client side.