> For the complete documentation index, see [llms.txt](https://developers.make.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.make.com/custom-apps-documentation/component-blocks/api/buffer.md).

# Buffer

Buffer is useful for handling files in download or upload modules.

Most APIs use the multipart/form-data content format to upload files and this works seamlessly with buffer types in Make.

## Download a file

The Download a file module downloads a file from the service with data type `buffer` in the interface.

{% tabs %}
{% tab title="Occurrence in a module" %}

<div align="left"><figure><img src="/files/XNj59jJKg4DUdMiZG9R4" alt="" width="332"><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/FxXj90VrnIDUW0Mplxh9" alt="" width="323"><figcaption></figcaption></figure></div>

{% hint style="info" %}
The parameters are correctly evaluated and automatically pre-mapped in the file input dialog in the following module that accepts `buffer` with the file's name and data.
{% endhint %}
{% endtab %}

{% tab title="Interface" %}

<pre class="language-json"><code class="lang-json">[
<strong>    {
</strong>        "name": "name",
        "type": "filename",
        "label": "Name",
        "semantic": "file:name"
    },
    {
        "name": "data",
        "type": "buffer",
        "label": "Data",
        "semantic": "file:data"
    }

]
</code></pre>

{% endtab %}
{% endtabs %}

## Upload a file

The Upload a file module uploads a file to the service with data type `buffer` in mappable parameters and type [`multipart/form-data` in communication](/custom-apps-documentation/component-blocks/api/multipart-form-data.md)**.**


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.make.com/custom-apps-documentation/component-blocks/api/buffer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
