bigFileUploadInitFuture method

Future<MessageOrError> bigFileUploadInitFuture(
  1. String innerPath,
  2. int size, {
  3. String protocol = 'xhr',
})

Implementation

Future<MessageOrError> bigFileUploadInitFuture(
  String innerPath,
  int size, {
  String protocol = 'xhr',
}) async {
  var resultStr = await ZeroNet.instance.cmdFuture(
    ZeroNetCmd.bigfileUploadInit,
    params: {
      'inner_path': innerPath,
      'size': size,
      'protocol': protocol,
    },
  );
  return resultStr.toMsgOrErr;
}