It looks like you're new here. If you want to get involved, click one of these buttons!
$(\"#fileInput\").uploadify({
'uploader': 'resources/3rdparty/uploadify.swf',
'cancelImg': 'resources/images/cancel.png',
'script': '<?=$this->config->site_url();?>file/upload',
'folder': 'userfiles',
'queueID': 'fileQueue',
'multi': true,
'wmode': 'transparent',
'displayData': 'speed',
'buttonImg': 'resources/images/browseBtn.png',
//'checkScript': 'resources/3rdparty/check.php',
'checkScript': '<?=$this->config->site_url();?>file/upload',
'width': 80,
'height': 24,
'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
'rollover': true,
onError: function (a, b, c, d) {
if (d.status == 404)
alert('Could not find upload script. Use a path relative to: '+'<?= getcwd() ?>');
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);
},
onComplete: function (evt, queueID, fileObj, response, data) {
run_filetree();
$(\".status_upload .header\").html(\"Upload Complete!\");
count = count+1;
$(\".status_upload .status\").html(\"Successfully uploaded: <b>\"+count+\"</b>\");
files = $(\".fileList\").html();
msg = files+fileObj.name+\"<br/>\";
$(\".fileList\").html(\"\"+msg);
$(\".status_upload\").show();
}
});