/ SDKs / Flutter
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Track file upload progress using a handler

Copy link

If needed, you can track the file upload progress by passing the function as an argument to a parameter when calling the sendFileMessage() method.

try {
    final preMessage = channel.sendFileMessage(
        progress: (bytesSent, totalBytesSent) {
            // You can view how much of the file has been uploaded to the server.
        onCompleted: (msg, err) {
            // A file message has been successfully sent.