> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge-ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/autentifikaciya-i-obrabotka-dannykh/zagruzka-mediafailov.md).

# Загрузка медиафайлов

Чтобы провести анализы для ваших медиафайлов, необходимо поместить их в папку — либо существующую, либо новую, созданную с помощью Oz API. Для каждого файла необходимо указать [теги](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/media-tags.md): они описывают, что это за файл и какие анализы к нему применимы.

{% hint style="info" %}
**Если у вас версия API 4.0.8 или старше**, обратите внимание: если вы хотите загрузить фото с тем, чтобы позднее отправить его на анализ Liveness, поместите это фото в ZIP-архив и укажите для него теги, [специфичные для видео](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/media-tags.md#tegi-videofailov).
{% endhint %}

Создание папки и добавление в нее медиафайлов: [`POST`](https://documenter.getpostman.com/view/23712118/2s93m1Z4bP#9d0ae7d6-4059-458c-9404-29fe1c04e226) `/api/folders/`

Добавление файлов в существующую папку: [`POST`](https://documenter.getpostman.com/view/23712118/2s93m1Z4bP#e239f619-1aa7-41cb-b098-071c83a7b960) `/api/folders/{{folder_id}}/media/`

Файлы должны быть добавлены в теле запроса, теги — в поле payload.

Пример заполнения payload для пассивного Liveness и фотографии лицевой стороны документа:

<pre class="language-json" data-title="payload"><code class="lang-json">{
    "media:tags": { // здесь устанавливаются теги для загружаемых вами медиафайлов
    // media files are referenced by the keys in a multipart form
        "video1": [ // ключ для файла
        // стандартный набор тегов для видео с пассивным Liveness
            "video_selfie", // видео с лицом
            "video_selfie_blank", // <a data-footnote-ref href="#user-content-fn-1">жест</a> отсутствует
            "orientation_portrait" // ориентация видео
        ],
        "photo1": [
        // стандартный набор тегов для лицевой стороны документа
            "photo_id",
            "photo_id_front"
        ]
    }
}
</code></pre>

Пример использования (Postman):

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

В случае успеха в ответе вернется информация о папке.

[^1]: Жесты в Liveness описаны [здесь](/oz-knowledge-ru/obshaya-informaciya/opisanie-sistemy-oz-forensics/liveness-gestures.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://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/autentifikaciya-i-obrabotka-dannykh/zagruzka-mediafailov.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.
