Attachment input File Type validation not works in Bot Composer 2.1.1

Venkatesan Raji 1 Reputation point

I am using Bot composer v2.1.1

Based on my requirement, am trying to upload pdf file and it should allow only PDF

Hence I added validation(= equals(last(this.value).contentType , 'application/pdf')) to allow only PDF file as below,



But facing below error,

Please help me to resolve this issue.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
756 questions
{count} votes