onUploadSuccess
function
N/A
Triggered for each file that successfully uploads.
Arguments
- file
The file object that was successfully uploaded - data
The data that was returned by the server-side script (anything that was echoed by the file) - response
The response returned by the server—true on success or false if no response. If false is returned, after the successTimeout option expires, a response of true is assumed.
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.php',
'onUploadSuccess' : function(file, data, response) {
alert('The file ' + file.name + ' was successfully uploaded with a response of ' + response + ':' + data);
}
});
}); |

