# Отправляем файлы через http блок

## Блок HTTP запрос

{% hint style="info" %}
**Применяется метод POST-запрос**
{% endhint %}

> Http request: <https://gigachat.devices.sberbank.ru/api/v1/files>

{% hint style="success" %}
Добавлен метод **multipart/form-data** с возможностью прикрепить файл
{% endhint %}

<figure><img src="/files/Ig269cDheRpkDDEkC5j1" alt="" width="563"><figcaption><p>В распоряжении два способа добавления файлов.</p></figcaption></figure>

Файл, который пользователь отправил в боте.&#x20;

В этом случае не забудьте преобразовать ссылку с помощью метода [decodeShortLink](https://docs.watbot.ru/rabota-s-api/ssylki-na-mediafaily)

<figure><img src="/files/8rX2ofJz31LFPijs3Hiw" alt="" width="563"><figcaption></figcaption></figure>

Выбрать локальный файл с компьютера.

<figure><img src="/files/AlmF3mWGrDADIkN6oKK6" alt="" width="563"><figcaption></figcaption></figure>

Частое и наиболее подходящее применение - это отправка файла (картинки или голосового сообщения) в ИИ, для обработки данного файла и выдачи результата.


---

# 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://help.watbot.ru/chat-boty/bloki/nastroiki-http-blokov-iz-video/otpravlyaem-faily-cherez-http-blok.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.
