Hi there. Is there any way to avoid/block some types of files when uploading via typebot?
I need to allow only pdf and docx to be send via typebot. Is it possible?
function isValidType(ImageURL) {
const fileExtension = ImageURL.includes('.') ? ImageURL.split('.').pop().toLowerCase() : 'FALSE';
return fileExtension;
}
// Example usage in Typebot
return isValidType({{logoRaw}})function isValidType(ImageURL) {
const fileExtension = ImageURL.includes('.') ? ImageURL.split('.').pop().toLowerCase() : 'FALSE';
return fileExtension;
}
// Example usage in Typebot
return isValidType({{logoRaw}})