@AdamH ,
No, it is looking at the last 3 characters - you can actually do this another way - just keep adding them.
If(
!( Lower(
Last(
Split(
Last(Self.Attachments).Name,
"."
)
).Value in ["pdf", "docx", "xlsx"]
)),
Reset(Self);
Notify(
"Only pdf, Word and Excel files allowed",
NotificationType.Error,
5000
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps