resume method

Future<bool> resume()

Check if possible to resume an already started upload

Implementation

Future<bool> resume() async {
  _fileSize = await file.length();
  _pauseUpload = false;

  if (!resumingEnabled) {
    return false;
  }

  _uploadUrl = await store?.get(_fingerprint);

  if (_uploadUrl == null) {
    return false;
  }
  return true;
}