Abandon the transfer and discard any partial output (e.g. free the buffer or delete the partial file).
Optionalreason: unknownOptional cause of the abort.
Finalise the destination and return the result.
A SinkResult describing where/how the data was stored.
OptionalopenPrepare the sink for writing, given the file's metadata (e.g. pre-allocate a buffer or open a file handle). Called once before the first write.
Name, size, and MIME type of the incoming file.
Write a chunk at an absolute file offset. Chunks may arrive out of order.
Byte offset within the file at which to write.
The chunk bytes.
Random-access destination for received file bytes.
The receive pipeline writes chunks at their file offsets via StorageSink.write (order-independent), then calls close on success or abort on failure. Built-in implementations include MemorySink, FileSystemAccessSink, and
NodeFileSink.