Search Results for

    Show / Hide Table of Contents

    Method MainFileLength

    MainFileLength(String, String, String)

    Get file length from main document file

    Declaration
    long MainFileLength(string connectionId, string documentId, string versionId)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String documentId

    The document id. See also Id

    System.String versionId

    Optional: The version id. See also GetVersionListItems(String, String, Int32, Int32)

    Returns
    Type Description
    System.Int64

    Main file length

    Examples

    POST http://YourServerName/InfoShare/Json/File/MainFileLength

    Example for get file length from main document file.

    {
       "connectionId": "bbf760ba-6bdb-45b6-9eec-992669fc7359",
       "documentId": "653fa7fd-f6dd-e911-a947-00155d290a08",
       "versionId": "653fa7fd-f6dd-e911-a947-00155d290a08"
    }

    Response:

    {
       "MainFileLengthResult": 1454592
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Document without file {documentId} (10004)

    ServiceException

    No document found for documentId {documentId} (10005)

    ServiceException

    Could not retrieve version {versionId} for document {documentId} (10130)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox