Class UploadContent
Represents the complete file of an upload as an IUploadStore provides it: a stream that reads it, and the path of a file that has it, if the store keeps one in a file system.
Namespace: Singulink.Net.Http.Api.Service.Uploads
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public abstract class UploadContent
Properties
| Name | Description |
|---|---|
| FilePath | Gets the path of a file that has the content, or null if the store keeps none. Default is null. |
Methods
| Name | Description |
|---|---|
| MoveToAsync(string, CancellationToken) | Moves the content to a new file at the specified path, so that the store no longer removes it. Default copies the content from OpenReadStream() to the new file. |
| OpenReadStream() | Opens a read-only stream of the content. A store that keeps the content in a file system returns a seekable stream. |