Attachment settings do not work

I have a setting to only accept certain file types like doc and docx. It works fine when I test in preview mode of UI Designer tool. But when I use that model in my project, it does not work. Am I missing anything?
This is how it looks like in preview mode:

image

And in my project:

image

There are my models:

DomainSnippet.json (11.7 KB)
Snippet.json (6.1 KB)

Thanks in advance.

I have found the reason why this happened. It was mismatched versions.