onCheck
function
N/A
Triggered after a file is checked against existing files in the destination folder. Only triggered if the onCheck option is not set to false.
Arguments
- file
The file object being checked - fileExists
(true or false) Whether or not the file name exists in the destination folder
Demo
|
1 |
<input type="file" name="file_upload" id="file_upload" /> |
|
1 2 3 4 5 6 7 8 9 10 11 |
$(function() {
$('#file_upload').uploadifive({
'checkScript' : '/check-exists.php',
'uploadScript' : '/uploadifive.php',
'onCheck' : function(file, exists) {
if (exists) {
alert('The file ' + file.name + ' exists on the server.');
}
}
});
}); |

