Hello!
I have a canvas app with a form that allows users to upload attachments. The issue is that users upload attachments that have special characters in the file name, and then they are not successfully saved to the SharePoint. Is there a way to show an error message when the file name of a chosen attachment includes a special character before it can be submitted in the app?
Hi @LindseyT ,
Assuming tha AttachmentsComponent is a regular Attachments control, the below should work:
If(
"Error" in ForAll(
AttachmentsComponent.Attachments,
If(
IsMatch(
ThisRecord.Name,
".*[\\\""<>!@#$%^&*].*"
),
"Error"
)
),
Notify("No special characters in filename please", NotificationType.Error),
<Upload file>
)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2