I want to check file size and file type when someone choose a file from file upload so for that i use
$('#fuEnglish1').live('change', function () {
var form = $("#form11").serialize();
var myurl = '<%= Url.Action("CheckFileSizeandType", "Media") %>';
$.ajax({
url: myurl,
type: "POST",
data: { Media: form },
success: function (mydata) {
}
});
});
to post the file. But when it post to controller method Request.Files.Count is equal to 0. what im doing wrong.