62,244
社区成员




<script type="text/javascript">
$(document).ready(function() {
$("#up").up({
'up' : 'scripts/up.swf',
'script' : 'scripts/Up.js',
'cancelImg' : 'scripts/cancel.png',
'folder' : 'uploads',
'queueID' : 'fileQueue',
'sizeLimit' : '5242880',//5M
'auto' : false,
'multi' : 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.info);
}
});
});
</script>