Search Results for

    Show / Hide Table of Contents

    Method VerifyFile

    VerifyFile(String, String, VerifyOptionsContract)

    Verify a recently uploaded file

    Declaration
    void VerifyFile(string connectionId, string fileId, VerifyOptionsContract verifyOptions)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String fileId

    The id of the file to be verified./>

    VerifyOptionsContract verifyOptions

    The options for the verify process. If null, no verification is done.

    Remarks

    The hash value is created by converting the SHA512 value of the file into a base64 string.

    Examples

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

    Example for verify file.

    {
        "connectionId": "2f4411a1-88bd-4855-a199-e276e95657a5",
        "fileId": "9a583f2e-1307-420a-93b5-6c4c64e6a4aa",
        "verifyOptions": 
        {
            "FileLength": "7",
            "HashValue": "zB+FTMzmqWP1LZrdCUSJm01CTnZrCWTKVY/9xsex9BEBg32rm4+H/vEeT8/oh5YJ2I7mZ4ELi1v5aytOLrVQWg=="
        }
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

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

    ServiceException

    File length validation failed (10247)

    ServiceException

    HashValue validation failed (10248)

    Back to top Copyright © Kendox