upload method

Future<NIMResult<String>> upload({
  1. required String filePath,
  2. String? mimeType,
  3. String? sceneKey,
})

nos上传 web 端filePath 传base64

Implementation

Future<NIMResult<String>> upload(
    {required String filePath, String? mimeType, String? sceneKey}) async {
  return _platform.upload(
      filePath: filePath, mimeType: mimeType, sceneKey: sceneKey);
}