HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Class UploadedFile<TCommand>

    Represents the complete file of a chunked upload with the app's command from the upload's creation, which the handler of the upload takes as a parameter.

    Inheritance
    object
    UploadedFile
    UploadedFile<TCommand>
    TestUploadedFile<TCommand>
    Implements
    IBindableFromHttpContext<UploadedFile>
    IBindableFromHttpContext<UploadedFile<TCommand>>
    Inherited Members
    UploadedFile.Id
    UploadedFile.FileName
    UploadedFile.Length
    UploadedFile.ContentType
    UploadedFile.FilePath
    UploadedFile.OpenReadStream()
    UploadedFile.MoveToAsync(string, CancellationToken)
    UploadedFile.IBindableFromHttpContext<UploadedFile>.BindAsync(HttpContext, ParameterInfo)
    Namespace: Singulink.Net.Http.Api.Service.Uploads
    Assembly: Singulink.Net.Http.Api.Service.dll
    Syntax
    public class UploadedFile<TCommand> : UploadedFile, IBindableFromHttpContext<UploadedFile>, IBindableFromHttpContext<UploadedFile<TCommand>>
    Type Parameters
    Name Description
    TCommand

    The type of the command.

    Remarks

    The file is removed once the handler finishes, unless the handler moved it with MoveToAsync(string, CancellationToken) or failed with a 503, which leaves the file for the next run of the handler. A handler that moves the file and then fails with a 503 leaves no file for the next run, which then fails, or, past UnstartedExpiry after the upload's creation, finds the upload expired, since without its file the upload counts as one that received no chunk. A handler that reads it with OpenReadStream() works with any IUploadStore, while FilePath is only available from stores that keep the file in a file system, such as the directory store.

    Constructors

    Name Description
    UploadedFile(string, string, long, string?, UploadContent, TCommand)

    Initializes a new instance of the UploadedFile<TCommand> class.

    Properties

    Name Description
    Command

    Gets the app's command from the upload's creation, read with the app's JSON options.

    Explicit Interface Implementations

    Name Description
    IBindableFromHttpContext<UploadedFile<TCommand>>.BindAsync(HttpContext, ParameterInfo)

    Binds the uploaded file parameter of the handler of a chunked upload, with the command from the upload's creation.

    © Singulink. All rights reserved.