Browse SDKs · Flutter
SDKsFlutter

Create a file message from a URL

Create a file message from an uploaded file element with the OpenIM Flutter SDK.

Copy
final message = await OpenIM.iMManager.messageManager
    .createFileMessageByURL(fileElem: fileElem);

FileElem should contain the actual URL, UUID, file name, and byte size. Send this object with sendMessageNotOss().