Only allow specific file types using validation rules

Am I missing something?

[Step 1 Source Document].Files.Filter(
  Find([Content Type], "pdf") < 0 and
    StartsWith([Content Type], "image/") = false
).Count() = 0

This is always blocking any new submission.

It seems like validation rules do not work for images on create. I suspect it is because they are attached after the entity is created? Not sure.

Changing this to a bug, if others have an idea, do let me know!

1 Like

It’s a bug, thanks for reporting.

We will fix it. Will inform here when fixed.

By the way how do you create entity with the file? Automations, Forms, somewhere else?

1 Like

Thank you!!

Forms. Internal form view + form popup. Didn’t try elsewhere.

1 Like