It looks like you're new here. If you want to get involved, click one of these buttons!
$('#uploadSource1').fileUpload({
'uploader': 'uploader.swf',
'script': 'adm-upload.php',
'folder': 'uploads/tmp-upload',
'cancelImg': 'images/cancel.png',
'displayData': 'percentage',
'scriptData': { 'filePrepend' : $('#submitTime').val() + '-1' },
onSelectOnce: function() { $('#uploadOptions1').show(); },
onCancel: function() { $('#uploadOptions1').hide(); },
onClearQueue: function() { $('#uploadOptions1').hide(); },
onAllComplete: function(event, data) {
$(\"#uploadOptions1\").hide();
alert(\"OAC\");
},
onError: function(event, queueID, fileObj, errorObj) {
alert(\"OE\");
alert(errorObj);
}
});
$('#uploadSource1').fileUpload({
'uploader': 'uploader.swf',
'script': 'adm-upload.php',
'folder': 'uploads/tmp-upload',
'cancelImg': 'images/cancel.png',
'displayData': 'percentage',
'scriptData': { 'filePrepend' : $('#submitTime').val() + '-1' },
onSelectOnce: function() { $('#uploadOptions1').show(); },
onCancel: function() { $('#uploadOptions1').hide(); },
onClearQueue: function() { $('#uploadOptions1').hide(); },
onAllComplete: function(event, data) {
alert(\"OAC\");
}
});
$(document).ready(function() {
$('#uploadify4').uploadify({
'auto': true,
'uploader': 'http://example.s3.amazonaws.com/',
'swf': '/swf/uploadify.swf',
'cancelImage': '/assets/uploadify-cancel.png',
'postData': {"key":"upload/${filename}","AWSAccessKeyId":"AKIAJWMJVLROOXFNY46A","acl":"public-read","policy":"ewogICAgICAnZXhwaXJhdGlvbic6ICcyMDExLTA3LTIyVDA5OjM1OjQzLjAwMFonLAogICAgICAnY29uZGl0aW9ucyc6IFsKICAgICAgICB7J2J1Y2tldCc6ICd3aWNrZWRiMmItZGV2J30sCiAgICAgICAgWydzdGFydHMtd2l0aCcsICckZmlsZW5hbWUnLCAnJyBdLAogICAgICAgIFsnc3RhcnRzLXdpdGgnLCAnJGtleScsICd1cGxvYWQnXSwKICAgICAgICB7J2FjbCc6ICdwdWJsaWMtcmVhZCd9LAogICAgICAgIHsnc3VjY2Vzc19hY3Rpb25fc3RhdHVzJzogJzIwMSd9LAogICAgICAgIFsnY29udGVudC1sZW5ndGgtcmFuZ2UnLCAwLCAyMTQ3NDgzNjQ4XSwKICAgICAgXQogICAgfQ==","signature":"pB9eR+uKyG/Yp2m3m6KNswD5pN4=","success_action_status":201},
'fileObjName': 'file',
'multi': true,
'onComplete' : function(event, ID, fileObj, response, data) {
alert('There are ' + data.fileCount + ' files remaining in the queue.');
}
});
});