upload method

Future<bool> upload(
  1. Stream<List<int>> stream, [
  2. int? length
])

Uploads a file from a Stream, returns true if successful. The length of the stream is optional, but if it's not provided for a multipart upload, the entire file will be buffered in memory.

Implementation

Future<bool> upload(Stream<List<int>> stream, [int? length]) =>
    _upload(stream.toByteStream(), length);