---
title: "FileInput"
summary: "@slack/web-api / FileInput"
url: "https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/FileInput"
type: "guide"
---

Source: https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/FileInput

[@slack/web-api](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api.md) / FileInput

# Interface: FileInput

Defined in: packages/types/dist/block-kit/block-elements.d.ts:183

## Description {#description}

Allows user to upload files. In order to use the `file_input` element within your app, your app must have the `files:read` scope.

## See {#see}

[File input element reference](https://docs.slack.dev/reference/block-kit/block-elements/file-input-element.md).

## Extends {#extends}

*   [`Actionable`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/actionable.md)

## Properties {#properties}

### action_id? {#action_id}

```ts
action_id?: string;
```

Defined in: packages/types/dist/block-kit/extensions.d.ts:12

@description: An identifier for this action. You can use this when you receive an interaction payload to [identify the source of the action](https://docs.slack.dev/interactivity/handling-user-interaction.md#payloads). Should be unique among all other `action_id`s in the containing block. Maximum length for this field is 255 characters.

#### Inherited from {#inherited-from}

[`Actionable`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/actionable.md).[`action_id`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/actionable.md#action_id)

* * *

### filetypes? {#filetypes}

```ts
filetypes?: string[];
```

Defined in: packages/types/dist/block-kit/block-elements.d.ts:193

#### Description {#description-1}

An array of valid [file extensions](https://docs.slack.dev/reference/objects/file-object.md) that will be accepted for this element. All file extensions will be accepted if `filetypes` is not specified. This validation is provided for convenience only, and you should perform your own file type validation based on what you expect to receive.

* * *

### max_files? {#max_files}

```ts
max_files?: number;
```

Defined in: packages/types/dist/block-kit/block-elements.d.ts:198

#### Description {#description-2}

Maximum number of files that can be uploaded for this `file_input` element. Minimum of `1`, maximum of `10`. Defaults to `10` if not specified.

* * *

### type {#type}

```ts
type: "file_input";
```

Defined in: packages/types/dist/block-kit/block-elements.d.ts:187

#### Description {#description-3}

The type of element. In this case `type` is always `file_input`.

#### Overrides {#overrides}

[`Actionable`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/actionable.md).[`type`](https://docs.slack.dev/tools/node-slack-sdk/reference/web-api/interfaces/actionable.md#type)
