fileSelect

Fired when the user selects files using the file attachment button.

Event Data

e.files Array

The array of selected files.

Example

<div id="chat"></div>
<script>
$("#chat").kendoChat({
    authorId: "user",
    fileAttachment: true,
    fileSelect: function(e) {
        console.log("Files selected:", e.files);
        e.files.forEach(function(file) {
            console.log("File name:", file.name);
            console.log("File size:", file.size);
        });
    }
});
</script>
In this article
fileSelect
Not finding the help you need?
Contact Support