Actions10
- Connection Actions
- File Actions
- Directory Actions
File → Read
AI-generatedSummary
Read file content from a Windows SMB2 network share.
Inputs
- filePath (required) — Path to the file relative to the share root
- encoding — Encoding for file content. Options: UTF-8, ASCII, Binary, Latin1. Default: UTF-8.
- dataPropertyName (required) — The name of the output field to put the binary file data in
- options — SMB2 operation options. Sub-parameters: timeout (ms, default 30000), shareOverride (string, default empty).
Output shape
The returned execution data depends on the selected encoding.
When encoding is binary, output includes binary data in the field named by dataPropertyName along with filePath, size, and encoding. When encoding is text (UTF-8, ASCII, Latin1), output includes filePath, content as a string, size, and encoding.
Examples
Example 1: Read a text file with UTF-8 encoding
filePath: 'docs/readme.txt'; encoding: 'utf8'; dataPropertyName: 'data' (ignored for text encoding). Output: { filePath, content: '
Example 2: Read a binary file
filePath: 'images/logo.png'; encoding: 'binary'; dataPropertyName: 'binaryData'. Output: { filePath, size: