TRVChatMessageExtraFiles.AddFile
<< Click to display table of contents >> TRVChatMessageExtraFiles.AddFile |
Adds a new file that will be attached to the message.
procedure AddFile(const ADisplayName,
AFileName: TRVUnicodeString;
AFileSize: Int64 = -1);
Parameters
ADisplayName – the file name as it will be displayed in the chat window.
AFileName can be a file name or any string indicating its location. For example, if you received a message from the server but the file has not yet been downloaded, this property may contain a command to retrieve the file from the server.
AFileSize – file size in bytes. If AFileName contains a full local file name, you can pass -1 in this parameter. In this case the component will retrieve the file size itself.
The file will be added with the file type = rvcftDownload. You can modify it in Files collection, or call AssignDefaultFileTypes after adding all files.