The action which writes file content to the network stream
The action executed before the content is being written (null means no action to perform)
The file size. It is sent in RavenFS-Size header to validate the number of bytes received on the server side. If there is a mismatch between the size reported in the header and the number of the bytes read on the server side, then BadRequestException is thrown
The file metadata (default: null)
The current file etag used for concurrency checks (null skips check)
A task that represents the asynchronous upload operation
CryptoStream and any other non-seekable streams are supported.
using (var file = File.OpenRead(@"C:\intro.avi"))