v.setUploadProgress(((double)c.getUploadedByteCount())/c.getSize());
v.showUploadProgress();
break;
case FAILED_AND_NOT_RETRYABLE:
v.hideUploadProgress();
v.displayDeadImage(attachmentLoadingFailedTooltip);
break;
default:
throw new IllegalStateException();
}
}