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

1.7 KiB
Raw Blame History

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. txt)

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. image. 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. image/jpeg

Syntax: binaryFile.mimeType

Returns: String

Source: Custom n8n functionality