sir write below function.
I want to store more than 600kb file it show error as per code. so I'd change 600 to 5120 for 5 mb file but it showing IO Error. error as follow
IO Error - file name - 1%
$(window).load( function() {
$("#<%=FileUpload1.ClientID%>").fileUpload({
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel.png',
'buttonText': 'Browse Files',
'script': 'Upload.ashx',
'folder': 'uploads',
'fileDesc': 'All Files',
'fileExt': '*.jpg;*.jpeg;*.gif;*.png;',
'multi': true,
'auto': false,
'sizeLimit': (600 * 1024), //600 KB
onError: function (a, b, c, d) {
if (d.type === "File Size") {
$("#err").html('File: ' + c.name + ' Maximum ' + d.type + ' Limit: ' + Math.round(d.sizeLimit / 1024) + 'KB');
}
} }); } );