> For the complete documentation index, see [llms.txt](https://academy.any2info.com/any2info-academy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.any2info.com/any2info-academy/no-code-platform/data-studio/data-hubs/toolbox/function/common/expand-files.md).

# Expand files

**Category:** Function

**Version:** 1.0

**Last updated:** Januari 9, 2026

**Author:** Any2Info

***

### Description

The **Expand Files** node is used to process and transform columns that contain file data within a dataflow.

The Data hub provides two special data types for handling files:

* **File** – Represents a single file, containing both the content (Base64-encoded) and the filename.
* **MultipleFiles** – Similar to *File*, but contains multiple files within a single record.

The Expand Files node can perform two main operations:

1. Expand MultipleFiles to individual File rows

When a column contains multiple files (type MultipleFiles), this node can “expand” those files into separate rows.

Each resulting row will contain a single file.

For example, if one record contains three files, the result will be three records — each containing one file.

2. Split File into content and filename columns

The node can further decompose file data into two separate columns:

*FileContent* – The Base64-encoded file content.

*FileName* – The file name as a text value.

This can be done for both File and MultipleFiles inputs.

The node also exposes a Files connector, which can be used by subsequent nodes to process only the rows that contain file data.<br>

***

### Property Options

| Setting                                                                                                               | Type   | Required | Description                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------- |
| **Source column**                                                                                                     | Select | Yes      | Select the source column from the input that contains file data. This column must be of type File or MultipleFiles. |
| **Output type**                                                                                                       | Select | Yes      | <p>Defines how the data should be expanded:                                                                         |
| <br>• File – Expands a MultipleFiles column into multiple rows, each containing one File.                             |        |          |                                                                                                                     |
| <br>• Base64 + Filename – Splits each file into two separate columns: FileContent (base64) and FileName (string).</p> |        |          |                                                                                                                     |

***

### Tips & best practices

* **Use the Files connector when a following node expects file input.**\
  Some nodes — such as **Export to OneDrive**, or other file output nodes — only process rows that contain actual files.\
  By connecting those nodes to the **Files** connector of the Expand Files node, you automatically pass only the rows that include files.

***

### Changelog

| Version | Date            | Change                               |
| ------- | --------------- | ------------------------------------ |
| **1.0** | Januari 9, 2026 | Initial documentation version added. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.any2info.com/any2info-academy/no-code-platform/data-studio/data-hubs/toolbox/function/common/expand-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
