upload abstract method
Future<HostedFileContent>
upload(
- Stream<
List< content, {int> > - String? mediaType,
- String? fileName,
- HostedFileClientOptions? options,
- CancellationToken? cancellationToken,
Uploads a file to the AI service.
Returns a HostedFileContent with metadata about the uploaded file.
Implementation
Future<HostedFileContent> upload(
Stream<List<int>> content, {
String? mediaType,
String? fileName,
HostedFileClientOptions? options,
CancellationToken? cancellationToken,
});