I have following problem with uploadify and I'm planing to use iframe. I already lost few hours without any result.
Here is my code;
$('#file').uploadify({
'uploader' : 'includes/js/uploadify/uploadify.swf',
//'checkScript' : 'includes/ajax/sales/upload.php',
'script' : 'includes/ajax/sales/upload.php',
'cancelImg' : 'includes/js/uploadify/cancel.png',
'folder' : 'uploads/items/',
'multi' : false,
'fileExt' : '*.xls;*.txt;*.csv',
'fileDesc' : 'Allowed Files',
'buttonText' : 'Files',
'fileDataName' : 'file',
'method' : 'post',
'scriptData' : {'required1':'<?php echo $required1; ?>','required2':'<?php echo $required2; ?>'},
'sizeLimit' : 1024 * 1024 * 5, // 5MB
'onError' : function (event,ID,fileObj,errorObj) {
alert(errorObj.type + ' ERROR: ' + errorObj.info);
},
'onComplete' : function(event, ID, fileObj, response, data) {
alert('Success!!');
}
});
I'm not sure if this is a bug but it kinda seems to me like a bug considering I did follow documentation, my upload.php works as expected, my folder permissions are 777 still doesn't work.
I will be glad if anyone could point out what is this problem and how to solve it.
I don't know what is causing this problem, maybe browser, add-on or flash related problem. It just doesn't upload anything at all.
So I downloaded V3.0.0 (BETA) version and everything works as expected.