InteractionFile
Classsealednet10.0
Represents a file selected by the user for an
InputType.File input. namespace Aspire.Hosting;
public sealed class InteractionFile{ // ...}5 members
Properties3
Section titled PropertiesFilePathgetstring Gets the full path to the uploaded file on disk.
Idgetstring Gets the unique identifier for the uploaded file.
Namegetstring Gets the original file name as provided by the user (e.g. "readme.txt").
Methods2
Section titled MethodsOpenReadStream Opens a read-only stream for the file content.
ReadAllBytesAsync(CancellationToken)Task<byte[]> Reads all bytes of the file asynchronously.