My Uploadify script works fine for most files smaller than 10 MB. But as soon as the file size starts to exceed 40 MB, it will not be able to download only the "HTTP Error" error message. I tried implementing the onError handler for Uploadify, but it does not give me any details about the exact error. The variable is returned as "undefined". I checked the web.config file and the file size limit is set to 50 MB, and I have a timeout of 30 minutes, so I'm at a loss as a problem. Here is my script:
$('#uploader').uploadify({ 'uploader': '/js/uploadify/uploadify.swf', 'script': '/cms/common/uploadify/UploadHandler.ashx', 'cancelImg': '/images/cancel_upload.png', 'buttonImg': '/images/select_video_thumbnail_en-us.gif', 'auto': true, 'folder': '/Temp', 'multi': false, 'sizeLimit': 0, 'displayData': 'percentage', 'simUploadLimit': 1, 'fileExt': '*.jpg;*.gif;*.png', 'fileDesc': '*.jpg;*.gif;*.png', 'buttonText': 'Select thumbnail...', 'width': '120', 'height': '24', 'onComplete': function (e, queueId, fileObj, response, data) { return true; }, 'onError': function (a, b, c, d) { if (d.status == 404) alert('Could not find upload script.'); else if (d.type === "HTTP") alert('error ' + d.type + ": " + d.status); else if (d.type === "File Size") alert(c.name + ' ' + d.type + ' Limit: ' + Math.round(d.sizeLimit / 1024) + 'KB'); else alert('error ' + d.type + ": " + d.text); }, 'onCancel': function (e, queueId, fileObj, data) { } });
source share