Files
n8n-docs/docs/data/expression-reference/binaryfile.md
Kartik Balasubramanian 96e6ba167d Revamp the data section of n8n docs (#4077)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-25 14:30:33 +00:00

73 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# BinaryFile
## `binaryFile`.**`directory`**
**Description:** The path to the directory that the file is stored in. Useful for distinguishing between files with the same name in different directories. Not set if n8n is configured to store files in its database.
**Syntax:** `binaryFile`.**`directory`**
**Returns:** String
**Source:** Custom n8n functionality
## `binaryFile`.**`fileExtension`**
**Description:** The suffix attached to the filename (e.g. <code>txt</code>)
**Syntax:** `binaryFile`.**`fileExtension`**
**Returns:** String
**Source:** Custom n8n functionality
## `binaryFile`.**`fileName`**
**Description:** The name of the file, including extension
**Syntax:** `binaryFile`.**`fileName`**
**Returns:** String
**Source:** Custom n8n functionality
## `binaryFile`.**`fileSize`**
**Description:** A string representing the size of the file
**Syntax:** `binaryFile`.**`fileSize`**
**Returns:** String
**Source:** Custom n8n functionality
## `binaryFile`.**`fileType`**
**Description:** A string representing the type of the file, e.g. <code>image</code>. Corresponds to the first part of the MIME type.
**Syntax:** `binaryFile`.**`fileType`**
**Returns:** String
**Source:** Custom n8n functionality
## `binaryFile`.**`id`**
**Description:** The unique ID of the file. Used to identify the file when it is stored on disk or in a storage service such as S3.
**Syntax:** `binaryFile`.**`id`**
**Returns:** String
**Source:** Custom n8n functionality
## `binaryFile`.**`mimeType`**
**Description:** A string representing the format of the files contents, e.g. <code>image/jpeg</code>
**Syntax:** `binaryFile`.**`mimeType`**
**Returns:** String
**Source:** Custom n8n functionality