Table of Contents

Interface IFormFile

Namespace
Phoesion.Glow.SDK
Assembly
Phoesion.Glow.SDK.Photons.Abstractions.dll
public interface IFormFile

Properties

ContentDisposition

Gets the raw Content-Disposition header of the uploaded file.

string? ContentDisposition { get; }

Property Value

string

ContentType

Gets the raw Content-Type header of the uploaded file.

string? ContentType { get; }

Property Value

string

FileName

Gets the file name from the Content-Disposition header.

string? FileName { get; }

Property Value

string

Headers

Gets the header dictionary of the uploaded file.

IHeaderDictionary Headers { get; }

Property Value

IHeaderDictionary

Length

Gets the file length in bytes.

long Length { get; }

Property Value

long

Name

Gets the form field name from the Content-Disposition header.

string? Name { get; }

Property Value

string

Methods

CopyToAsync(Stream, CancellationToken)

Copy file contents to stream

Task CopyToAsync(Stream target, CancellationToken cancellationToken = default)

Parameters

target Stream
cancellationToken CancellationToken

Returns

Task

GetReaderAsync()

Get reader stream

Task<Stream> GetReaderAsync()

Returns

Task<Stream>