> 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="https://2041336905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHLoHbtSPFA1Ul7oKM5SC%2Fuploads%2Fq3zH9M0J7KNIACSoBtzs%2FScreenshot_69.png?alt=media&amp;token=89846281-2712-4baa-b260-dfb6e950def4" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.ozforensics.com/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/autentifikaciya-i-obrabotka-dannykh/zagruzka-mediafailov.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
