getFileList

TrueConf7/5/26About 1 min

getFileList

Description

Get a list of files that are available on the HTTP server

Returns an array of objects, each representing detailed information about the file. Detailed operation with them is described in the section about the built-in HTTP server

void getFileList()

Response example

{
    "method": "getFileList",
    "requestId" : "1",
    "fileList":
    [
        {
            "fileId": "1",
            "fileName": "TeamViewer_Setup.exe"
        },
        {
            "fileId": "2",
            "fileName": "734.exe"
        },
        {
    "fileId": "3",
            "fileName": "258.exe"
        },
        {
    "fileId": "4",
            "fileName": "Screenshot (1).png"
        }
    ],
    "result": true
}

Response Parameters

NameDescription
fileIdUnique identifier of the file on the built-in HTTP server
fileListThe list of files available on the built-in HTTP server
fileNameOriginal file name
requestIdA unique request identifier
resultA flag indicating whether the request was successful

See also

Last Updated: