skoric
uploadAvatarObservable = apiService.uploadAvatar(filePart) .doOnError(...) // Handle error here .replay() .publish() .connect()