# Only allow specific file types using validation rules

**URL:** <https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629>\
**Category:** Bugs & Issues\
**Created:** [March 23, 2026, 8:22pm UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629 "2026-03-23T20:22:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [March 23, 2026, 8:22pm UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/1 "2026-03-23T20:22:53Z")

</div>

Am I missing something?

```auto
[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.

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [March 26, 2026, 7:32am UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/2 "2026-03-26T07:32:46Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [March 26, 2026, 1:14pm UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/3 "2026-03-26T13:14:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [March 26, 2026, 2:37pm UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/4 "2026-03-26T14:37:00Z")

</div>

Thank you!!

> [@Sergey\_Truhtanov](#):
>
> By the way how do you create entity with the file? Automations, Forms, somewhere else?

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

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [May 22, 2026, 10:41am UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/5 "2026-05-22T10:41:00Z")

</div>

Hey! Is there any update on this one? Thank you!

I want to implement file compressing, but the compressor can only handle certain file types…

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [May 22, 2026, 11:21am UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/6 "2026-05-22T11:21:46Z")

</div>

> [@RonMakesSystems](#):
>
> Is there any update on this one?

No. We haven’t heard a lot of complaints, so it’s not high-priority I’m afraid

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [May 22, 2026, 11:30am UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/7 "2026-05-22T11:30:21Z")

</div>

Okay thanks for letting me know! I’ll figure out a different solution in the mean time then

---

<div class="post-metadata">

**Author:** ![Sergey\_Truhtanov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/sergey_truhtanov/32/13986_2.png) [@Sergey\_Truhtanov](https://community.fibery.io/u/Sergey_Truhtanov)\
**Post date:** [May 25, 2026, 9:43am UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/8 "2026-05-25T09:43:57Z")

</div>

Hm.

I’ve checked and when creating entity via forms, Files seem to be attached as a part of Entity creation.

So I’ve added a simple Validation Rule. And it alerts when I create entity via form without Files. And works ok when I create entity via form and add upload some files.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/5/5eab5263da20f32016eb5dc3634799c2c3a055a1.png)

So can you please describe in more details what does not work for you 🙏

---

<div class="post-metadata">

**Author:** ![RonMakesSystems](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/ronmakessystems/32/14122_2.png) [@RonMakesSystems](https://community.fibery.io/u/RonMakesSystems)\
**Post date:** [May 25, 2026, 11:45am UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/9 "2026-05-25T11:45:35Z")

</div>

Hmmmm!  
It seems to indeed be working now! Here’s the formula I used:

```auto
[Step 1 Project].Files.Filter(
  Find([Content Type], "pdf") = 0 and
    Find([Content Type], "image") = 0
).Count() > 0

```

Not sure what changed, thought I tested simple formulas like yours and it didnt work… Guess my original formula was just wrong.

Thanks!

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [May 25, 2026, 2:05pm UTC](https://community.fibery.io/t/only-allow-specific-file-types-using-validation-rules/10629/10 "2026-05-25T14:05:10Z")

</div>

Closed on May 25, 2026, 2:05pm UTC


