# File download

<figure><img src="/files/STxFRb1L25rfpZd1rUKR" alt=""><figcaption></figcaption></figure>

## Overview

{% hint style="info" %}
This component allows users to **download** a file from the platform, not upload one.

To upload any document into the platform, refer to [`Upload Button`](/design/components/actions/buttons.md#upload-button) a dedicated component to be used in a form.
{% endhint %}

This component has two mandatory fields:

* File name (specifying the file type). \
  If the file name is too long to fit into the given space, we automatically include an ellipsis but always display the file format.
* File icon

This component has a optional fields:

* File size\
  Specifying the file size is better because it provides users a useful information, aiding transparency from our side, download speed estimation, and data storage needed.

<figure><img src="/files/LyIKN1nn2grSFTm3Lpta" alt=""><figcaption></figcaption></figure>

Each component can contain only one file. \
If multiple files are available for download, you must overstack the component

<figure><img src="/files/Nr4g9qrdDJrpGamKn6Hi" alt=""><figcaption></figcaption></figure>

## Key takeaways <a href="#id-8864e6" id="id-8864e6"></a>

{% hint style="success" %}

* Include file size if possible
* Use one component per file
  {% endhint %}

{% hint style="danger" %}

* Change the wording of the action (no "Download here")
  {% endhint %}


---

# 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://design.mirakl.com/design/components/actions/file-download.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.
