fileSelectButtonBoolean|Object(default: false)
Controls the visibility and configuration of the File Select button in the end affix. When enabled, users can attach files to their prompts.
Example
<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
fileSelectButton: true,
placeholder: "Attach files...",
fileSelect: function(e) {
console.log("Files selected:", e.files);
}
});
</script>
Example - File select with restrictions
<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
fileSelectButton: {
multiple: true,
accept: "image/*",
restrictions: {
allowedExtensions: [".jpg", ".png", ".gif"],
maxFileSize: 5242880
}
},
placeholder: "Attach images (max 5MB)..."
});
</script>