Search Results for

    Show / Hide Table of Contents

    Interface IFilesClient

    Namespace: Noxum.Nova.Cms.Client
    Assembly: Noxum.Nova.Cms.Client.dll
    Syntax
    public interface IFilesClient

    Methods

    ContinueUploadAsync(string, string, bool?, FileParameter, CancellationToken)

    Continue uploading an external file.

    Declaration
    Task<FileUploadResult> ContinueUploadAsync(string token, string extension = null, bool? commit = null, FileParameter file = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string token

    The token of the temporary file.

    string extension
    bool? commit
    FileParameter file
    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<FileUploadResult>

    Ok

    Remarks

    Continue uploading an external file.

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    DeleteTempFileAsync(string, CancellationToken)

    Delete the temporary file using the provided token.

    Declaration
    Task<FileResponse> DeleteTempFileAsync(string token, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string token

    Token for the temporary file to delete (including extension).

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<FileResponse>

    Ok

    Remarks

    Delete the temporary file using the provided token.

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    GetFileAsync(string, string, CancellationToken)

    Retrieve the file with the specified name.

    Declaration
    Task<FileResponse> GetFileAsync(string name, string range = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string name

    Name of the file including the extension.

    string range

    Range header value. For more information, visit https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range

    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<FileResponse>

    Ok

    Remarks

    Retrieve the file with the specified name.

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    StartUploadAsync(string, bool?, FileParameter, CancellationToken)

    Start uploading an external file.

    Declaration
    Task<FileUploadResult> StartUploadAsync(string extension = null, bool? commit = null, FileParameter file = null, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string extension
    bool? commit
    FileParameter file
    CancellationToken cancellationToken

    A cancellation token that can be used by other objects or threads to receive notice of cancellation.

    Returns
    Type Description
    Task<FileUploadResult>

    Ok

    Remarks

    Start uploading an external file.

    Exceptions
    Type Condition
    CmsApiException

    A server side error occurred.

    In this article
    Back to top Version 6.1.0.31rc