onFileUploadError

fires in case of a server-side error during uploading

void onFileUploadError(object file,object response);
fileobjectthe file data
responseobjecta server-side response (if any)

Example

$$("uploader1").attachEvent("onFileUploadError", function(file, response){
    //code
});

Related samples

Details

The events fires only when the server-side response contains the error status, like:

echo "{ status:'error' }";
See also
Back to top