It looks like you're new here. If you want to get involved, click one of these buttons!
<script type="text/javascript">
$(function() {
$('#file_upload').uploadify({
'uploader' : '/scripts/uploadify/uploadify.swf',
'script' : '/scripts/uploadify/uploadify.php',
'cancelImg' : '/scripts/uploadify/cancel.png',
'folder' : '/uploads',
'multi' : true,
'auto' : true,
'fileExt' : '*.jpg;*.gif;*.png',
'fileDesc' : 'Image Files (.JPG, .GIF, .PNG)',
'queueID' : 'queue',
'queueSizeLimit' : 3,
'simUploadLimit' : 3,
'removeCompleted': false,
'scriptAccess': 'always',
'onSelectOnce' : function(event,data) {
$('#status-message').text(data.filesSelected + ' files have been added to the queue.');
},
'onAllComplete' : function(event,data) {
console.log(data);
$('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');
},
'onError' : function(a, b, c, d) {
if (d.status == 404) {
alert('Could not find upload script. Use a path relative');
} else if (d.type === "HTTP") {
console.log(d); // Log to Java Console
alert('error '+d.type+": "+d.status);
} else if (d.type === "File Size") {
alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit));
} else {
alert('error '+d.type+": "+d.text);
}
}
});
});
</script>