# sendFile
Description
Send a file to a user.
void sendFile(int iFileId, string sPeerId)
Parameters
Name | Description |
---|---|
iFileId | Unique file identifier on the built-in HTTP server that was previously uploaded and needs to be sent |
sPeerId | Unique identifier of the user (TrueConf ID) to whom the file should be sent |
Response example
{
"method": "sendFile",
"requestId" : "1",
"sentFileRequestId": "88e75ca1-b758-4466-a2fe-d0e80b5cd6bd",
"result": true
}
Response Parameters
Name | Description |
---|---|
sentFileRequestId | The identifier of a file request (available only if the command has been successfully executed) |
requestId | A unique request identifier |
result | A flag indicating whether the request was successful |
See also