# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
