onCancel
function
Triggered when a file is removed from the queue (but not if it’s replaced duringĀ a select operation).
Arguments
- file
The file object being cancelled
Demo
|
1 2 |
<input type="file" name="file_upload" id="file_upload" />
<a href="javascript:$('#file_upload').uploadify('upload')">Upload Files</a> |
|
1 2 3 4 5 6 7 8 9 10 |
$(function() {
$("#file_upload").uploadify({
'auto' : false,
'swf' : '/uploadify/uploadify.swf',
'uploader' : '/uploadify/uploadify.php',
'onCancel' : function(file) {
alert('The file ' + file.name + ' was cancelled.');
}
});
}); |

