It looks like you're new here. If you want to get involved, click one of these buttons!
var id = 1234;
$(document).ready(function () {
$('#fileInput').uploadify({
'uploader': 'uploadify/uploadify.swf',
'expressInstall': 'uploadify/expressInstall.swf',
'script': 'Uploader.ashx',
'scriptData': { 'id': id },
'cancelImg': 'uploadify/cancels.png',
'buttonImg': 'uploadify/addfile.png',
'wmode': 'transparent',
'width': 16,
'height': 16,
'auto': true,
'multi': true,
'fileDesc': 'All files',
'fileExt': '*.*',
'queueSizeLimit': 5,
'sizeLimit': 4000000,
'buttonText': 'browse',
'removeCompleted': false,
'queueID': 'queue12',
'onComplete': function (event, queueID, fileObj, response, data) {
var upf = document.getElementById('myHiddenField');
upf.value = upf.value + fileObj.name + ',';
},
'onCancel': function (event, ID, fileObj, data) {
alert(fileObj.name);
}
});
});
<span id="' + ID + '_file" style="display:none">' + fileObj.name + '</span>\'onCancel' : function (event, ID, fileObj, data ){
alert( $("#"+ID+"_file").text() );
}