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

Search Results for

    Class UploadErrorData

    Gets the limits and the property that the errors of chunked uploads (see UploadErrorCodes) name in their messages, of the errors that its methods list, which the errors keep in their Data. An exception handler gets the errors with their values (see MapApiExceptionAsync(HttpContext, ApiException)).

    Inheritance
    object
    UploadErrorData
    Namespace: Singulink.Net.Http.Api.Service.Uploads
    Assembly: Singulink.Net.Http.Api.Service.dll
    Syntax
    public static class UploadErrorData

    Methods

    Name Description
    TryGetMaxSize(Exception, out long)

    Gets the largest length of an upload, in bytes, of an error with TooLarge.

    TryGetMaxTotalSizePerUser(Exception, out long)

    Gets the largest total length of the open uploads of a user, in bytes, of an error with SizeLimitReached or ExceedsSizeLimit.

    TryGetMaxUploadsPerUser(Exception, out int)

    Gets the largest number of open uploads of a user, of an error with LimitReached.

    TryGetProperty(Exception, out string?)

    Gets the property of the creation that is not valid, of an error with Invalid: fileName, length, contentType, chunkSize, idempotencyKey or command.

    © Singulink. All rights reserved.