Attachment input File Type validation not works in Bot Composer 2.1.1

Venkatesan Raji 1 Reputation point
2022-09-21T06:21:15.377+00:00

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,

243168-image.png

243294-image.png

But facing below error,
243239-image.png

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.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.