Following code explicitly checks for upload property and then uses it if it present
if(callback.upload)
{
callback.upload.apply(callback.scope, [obj]);
}
Description
Following code explicitly checks for upload property and then uses it if it present
if(callback.upload)
{
callback.upload.apply(callback.scope, [obj]);
}