I have this code and working great in all other browser but IE. There was nothing happen and also i refer this link IE image caching with jQuery form: Force image reloading then also not working
//jquery.form.js version: 3.10 .
$(document).ready(function () {
$('#imageuploadform1').live('change', function () {
var counter = 0;
$("#preview").html('');
$("#preview").html('<img src="loader.gif?c=' + counter + '" alt="Uploading...."/>');
counter++;
$("#imageform").ajaxSubmit({
target: '#preview'
});
});
});
How can I solve this problem
IE does not let you do much of anything regarding file uploads that don’t use the native file input and involve the user physically clicking the submit button. This is a security feature in all browsers, but IE is a bit more heavy handed about it. It has been my experience that there is no way to do what you want in IE and you should simply put a switch in so that Non-IE users get the wiz-bang you’re looking for, but IE users have to do it the “old-fashioned” way.