Returning error on upload exception.