---
title: "is file type · RUAL Documentation"
description: "Checks whether the given files match a specific extension (e.g. mp4, jpg, png). Separate alternatives with | (e.g. png|jpg|gif)."
canonical: https://docs.rual.nl/block-types/files/file_is_type
language: en
---

# is file type

This block is part of the [`files`](https://docs.rual.nl/block-types/files) group and was last modified in core [`v14.0.5`](https://docs.rual.nl/core-versions/140005).

Checks whether the given files match a specific extension (e.g. mp4, jpg, png). Separate alternatives with | (e.g. png|jpg|gif).

- files required `file` the files to check

- extension required `value` the extension to check (e.g. mp4, jpg, png). Without dot. Separate alternatives with |, e.g. png|jpg|gif.

- is match `condition`

- count `number`

| `is mp4` |
| --- |
| `is jpg` |
| `is png` |
| `is pdf` |
| `is video` |
| `is image` |
| `check file type` |

A typical wiring for [is file type](https://docs.rual.nl/block-types/files/file_is_type): [value](https://docs.rual.nl/block-types/value/value_default) feeds the `extension` pin; the `condition` out pin feeds [branch](https://docs.rual.nl/block-types/flow/branch).

![Studio canvas example for the is file type block: typical wiring for is file type.](https://docs.rual.nl/canvas-examples/file_is_type.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [branch](https://docs.rual.nl/block-types/flow/branch): this block feeds into it.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

- [value](https://docs.rual.nl/block-types/value/value_default): feeds into this block. Simply returns the provided value.

### Version history

Introduced in [`v14.0.5`](https://docs.rual.nl/core-versions/140005).
