---
title: "get extension · RUAL Documentation"
description: "Grabs the file extension and mime-type"
canonical: https://docs.rual.nl/block-types/files/file_get_extension
language: en
---

# get extension

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

Grabs the file extension and mime-type

- file required `file`

- file `value`

- extension `value`

- mime-type `value`

A typical wiring for [get extension](https://docs.rual.nl/block-types/files/file_get_extension): [if](https://docs.rual.nl/block-types/files/file_branch) feeds the `file` pin; the `filename` out pin feeds [==](https://docs.rual.nl/block-types/condition/condition_equal); the `extension` out pin feeds [concatenate values](https://docs.rual.nl/block-types/value/value_concatenate).

![Studio canvas example for the get extension block: typical wiring for get extension.](https://docs.rual.nl/canvas-examples/file_get_extension.png)

### Commonly used with

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

- [==](https://docs.rual.nl/block-types/condition/condition_equal): this block feeds into it. returns true if the two values are equal.

- [if](https://docs.rual.nl/block-types/files/file_branch): feeds into this block. If.. then.. else..

- [rename](https://docs.rual.nl/block-types/files/file_rename): feeds into this block. Renames the given files.

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

- [concatenate values](https://docs.rual.nl/block-types/value/value_concatenate): this block feeds into it.

- [convert to lowercase](https://docs.rual.nl/block-types/value/value_to_lowercase): this block feeds into it.

### Version history

Introduced in [`v12.1.1`](https://docs.rual.nl/core-versions/120101).

Last modified in [`v13.0.7`](https://docs.rual.nl/core-versions/130007).
