I'm using fineuploader to upload large video files to my server. It works perfectly on all browsers except for IE8 - IE9. The files start to upload but then continue to upload pretty much "forever" and do not complete.
It works on IE for smaller files (limited by max PHP post size). Is there a way to stop this or give some kind of error message for IE8-9 users?
I was thinking of setting the max post file size to something huge... but unsure if this has any performance issues for the server?
Any help greatly appreciated. My code so far below:
<script src="fineuploader/jquery.fineuploader-3.7.0.js"></script>
<script>
var fileCount = 0;
var addedFiles = 0;
var fileLimit = 1;
$(document).ready(function() {
//Hide Submit button until video has finished uploading
$('#submit').hide();
$('#uploadmessage').hide();
var filelimituploader = new qq.FineUploader({
element: $('#filelimit-fine-uploader')[0],
request: {
endpoint: 'processfile/example.php'
},
retry: {
enableAuto: true
},
chunking: {
enabled: true
},
resume: {
enabled: true
},
validation: {
allowedExtensions: ['png','jpg','jpeg','gif','mp4','avi','mov','mpg','flv','m4v'],
sizeLimit: 199229440
},
callbacks: {
onSubmit: function(id, fileName) {
$('#uploadmessage').show();
fileCount ++;
if(fileCount > fileLimit) {
$('#filelimit-fine-uploader .qq-upload-button').hide();
$('#filelimit-fine-uploader .qq-upload-drop-area').hide();
return false;
}
},
onCancel: function(id, fileName) {
$('#uploadmessage').hide();
fileCount --;
if(fileCount <= fileLimit) {
$('#filelimit-fine-uploader .qq-upload-button').show();
}
},
onComplete: function(id, fileName, responseJSON) {
if (responseJSON.success) {
addedFiles ++;
if(addedFiles >= fileLimit) {
$('#filelimit-fine-uploader .qq-upload-button').hide();
$('#filelimit-fine-uploader .qq-upload-drop-area').hide();
//$('#filenamehere').html(responseJSON.uploadName);
$('#filen').val(responseJSON.uploadName);
$('#submit').show();
$('#uploadmessage').hide();
}
}
}
}
});
});
</script>