upload method

  1. @override
Future<HostedFileContent> upload(
  1. Stream<List<int>> content, {
  2. String? mediaType,
  3. String? fileName,
  4. HostedFileClientOptions? options,
  5. CancellationToken? cancellationToken,
})
override

Uploads a file to the AI service.

Returns a HostedFileContent with metadata about the uploaded file.

Implementation

@override
Future<HostedFileContent> upload(
  Stream<List<int>> content, {
  String? mediaType,
  String? fileName,
  HostedFileClientOptions? options,
  CancellationToken? cancellationToken,
}) =>
    innerClient.upload(
      content,
      mediaType: mediaType,
      fileName: fileName,
      options: options,
      cancellationToken: cancellationToken,
    );