code: def send_file(service, file, fileName=None, password=None, ignoreVersion=False):
  
      if checkServerVersion(service, ignoreVersion=ignoreVersion) == False:
          print('\033[1;41m!!! Potentially incompatible server version !!!\033[0m')
  
      ''' Encrypt & Upload a file to send and return the download URL'''
      fileName = fileName if fileName != None else os.path.basename(file.name)
  
      print('Encrypting data from "' + fileName + '"')
      keys = secretKeys()
      encData = encrypt_file(file, keys)
      encMeta = encrypt_metadata(keys, fileName)
  
      print('Uploading "' + fileName + '"')
      secretUrl, fileId, fileNonce, owner_token = api_upload(service, encData, encMeta, keys)
  
      if password != None:
          print('Setting password')
          sendclient.password.set_password(secretUrl, owner_token, password)
  
      return secretUrl, fileId, owner_tokef send_file(service, file, fileName=None, password=None, ignoreVersion=False):
  
      if checkServerVersion(service, ignoreVersion=ignoreVersion) == False:
          print('\033[1;41m!!! Potentially incompatible server version !!!\033[0m')
  
      ''' Encrypt & Upload a file to send and return the download URL'''
      fileName = fileName if fileName != None else os.path.basename(file.name)
  
      print('Encrypting data from "' + fileName + '"')
      keys = secretKeys()
      encData = encrypt_file(file, keys)
      encMeta = encrypt_metadata(keys, fileName)
  
      print('Uploading "' + fileName + '"')
      secretUrl, fileId, fileNonce, owner_token = api_upload(service, encData, encMeta, keys)
  
      if password != None:
          print('Setting password')
          sendclient.password.set_password(secretUrl, owner_token, password)
  
      return secretUrl, fileId, owner_token
docs: Encrypt & Upload a file to send and return the download URL