onUploadError
function
Triggered when a file has been uploaded but returns an error.
Arguments
- file
The file object that was uploaded - errorCode
The error code that was returned - errorMsg
The error message that was returned - errorString
The human-readable error message containing all the details of the error
Demo
|
1 |
<input type="file" name="file_upload" id="file_upload" /> |
|
1 2 3 4 5 6 7 8 9 |
$(function() {
$("#file_upload").uploadify({
'swf' : '/uploadify/uploadify.swf',
'uploader' : '/uploadify/uploadify-not-existing.php',
'onUploadError' : function(file, errorCode, errorMsg, errorString) {
alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
}
});
}); |

