I have an ASP.NET MVC app. This app requires jQuery 2.1 due to other jquery plugins in the app. I am trying to provide a way for my user's to upload pictures. In an attempt to do that, I was looking at the jQuery file uploader. My JavaScript looks like this:
$('#userPicture').fileupload({
dataType: 'json',
done: function (e, data) {
}
});
The userPicture markup looks like this:
<input id="userPicture" type="file" name="userPicture" data-url="/pictures/User/@ViewBag.UserId">
The page initially loads without any errors. When I choose a picture though, I get an error that says:
Uncaught Error: no such method 'process' for fileupload widget instance jquery-2.1.1.js:250
No image preview is shown. How can I choose a picture and show a client-side preview via a JQuery plugin that works in IE 8+