verifyUpload method

  1. @override
Future<DwCloudFile?> verifyUpload({
  1. required int fileId,
})
override

Confirms with the server that the bytes for reservation fileId arrived, and answers with the stored file — null when the upload cannot be verified or the reservation is not the caller's.

Implementation

@override
Future<DwCloudFile?> verifyUpload({required int fileId}) {
  final answer = answerVerifyUpload;
  if (answer == null) {
    throw DwUnpreparedServerCall(
      'verifyUpload',
      'answerVerifyUpload',
      'fileId: $fileId',
    );
  }
  return answer(fileId);
}