# Upload

{% hint style="info" %} <mark style="color:blue;">**Disponível em Breve**</mark>\
Está funcionalidade estará disponível em breve
{% endhint %}

O componente do tipo <mark style="color:blue;">upload</mark> deve ser utilizado quando o criador do tema disponibiliza ao usuário a possibilidade dele inserir algum arquivo dentro do tema. Abaixo é possível visualizar a aparência deste campo.​

<figure><img src="/files/kceESNptYwAR0wObNXkV" alt=""><figcaption><p><strong>Exibição do campo upload</strong></p></figcaption></figure>

**​Estrutura padrão do campo:**

```json
{
    "label": "Título do campo upload-image",
    "type": "upload-image",
    "description": "Descrição do campo com o tipo imagem.",
    "field": "nome_do_campo_image",
    "validation": "required:true|type:png,jpg,jpeg,webp,gif,svg,ico"
},
{
    "label": "Título do campo upload-image",
    "type": "upload-image",
    "description": "Descrição do campo com o tipo imagem.",
    "field": "nome_do_campo_image_com_image",
    "validation": "required:true|type:png,jpg,jpeg,webp,gif,svg,ico"
}
```

<table><thead><tr><th width="217">Atributo</th><th>Descrição</th></tr></thead><tbody><tr><td>label</td><td>Título do campo</td></tr><tr><td>type</td><td>Tipo do campo</td></tr><tr><td>description</td><td>Descrição do campo <br>Caso não houver, deixar vazio</td></tr><tr><td>field</td><td>Campo utilizado no tema para exibir o item desejado. <br>Esse nome deve ser exatamente igual ao campo criado no tema</td></tr><tr><td>validation</td><td>Validações do campo <br>Campo obrigatório</td></tr></tbody></table>

Seguem os tipos de arquivos que serão permitidos para o componente upload:

| Tipo    | Descrição                           |
| ------- | ----------------------------------- |
| Imagens | jpg, jpeg, png, webp, gif, svg, ico |


---

# 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://partners.tray.com.br/themes/construindo-seu-template/editor-do-tema/novo/estrutura/componentes/upload.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.
