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

Search Results for

    Class CreateUploadCommand

    Represents a request to create a chunked upload: the file's name, length and content type, the chunk size the client asks for, the app's command, and a key that makes a repeated creation get the same upload.

    Inheritance
    object
    CreateUploadCommand
    Namespace: Singulink.Net.Http.Api.DataContracts
    Assembly: Singulink.Net.Http.Api.dll
    Syntax
    public sealed class CreateUploadCommand

    Constructors

    Name Description
    CreateUploadCommand(string, long, string?, int?, JsonElement?, string?)

    Initializes a new instance of the CreateUploadCommand class.

    Properties

    Name Description
    ChunkSize

    Gets the chunk size the client asks for in bytes, or null for the service's default. The service keeps the size within its bounds, and the created upload has the size it chose (see ChunkSize).

    Command

    Gets the app's command as JSON, which the service reads with the app's JSON options, or null if there is none.

    ContentType

    Gets the content type of the file, or null if it is not known.

    FileName

    Gets the name of the file.

    IdempotencyKey

    Gets a key that the client chose for the upload, of 1 to 128 characters, or null for none. A creation with the key of an earlier creation of the user, such as one repeated after its response was lost, gets the upload that the earlier one created if it is for the same endpoint, query string, file and command, and fails with KeyConflict if not.

    Length

    Gets the length of the file in bytes. The upload has exactly this many bytes.

    © Singulink. All rights reserved.