---
title: "Tải ảnh (jpg, png, webp, gif tối đa 8 MB) hoặc PDF (tối đa 50 MB) lên thư viện, multipart/form-data với một tệp và tuỳ chọn trường altVi, altEn. Trả về tệp kèm ref \"media:&lt;id&gt;\" để gắn vào trang."
method: POST
path: "/ir/{symbol}/page/media"
tags: ["IRPage"]
---

# Tải ảnh (jpg, png, webp, gif tối đa 8 MB) hoặc PDF (tối đa 50 MB) lên thư viện, multipart/form-data với một tệp và tuỳ chọn trường altVi, altEn. Trả về tệp kèm ref "media:&lt;id&gt;" để gắn vào trang.

`POST /ir/{symbol}/page/media`

## Request

- Base URL: `https://api.fireant.vn`
- URL: `https://api.fireant.vn/ir/{symbol}/page/media`
- Auth: OAuth 2
  - Implicit: `https://accounts.fireant.vn/connect/authorize`
  - Scopes: `user-data-write`
- TypeScript: <https://skmtc.dev/fireant/apis/fireant-restful-api/docs/ir/:symbol/page/media/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `symbol` string, required

## Response `200`

OK

- FireAntApiModelsIRIRMediaAsset
  - `assetId` integer
  - `symbol` string
  - `kind` 1 | 2: (1 = Image, 2 = Pdf)
  - `url` string
  - `fileName` string
  - `contentType` string
  - `sizeBytes` integer
  - `width` integer
  - `height` integer
  - `altVi` string
  - `altEn` string
  - `uploadedBy` string
  - `uploadedDate` string, date-time
  - `ref` string: Tham chiếu dùng trong tài liệu trang: media:&lt;id&gt;

## Changes

- **2026-10-10** `300cfd8b632c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fireant/apis/fireant-restful-api/changes/ir/:symbol/page/media/post.md)

---

[API](https://skmtc.dev/fireant/apis/fireant-restful-api.md) - [All operations](https://skmtc.dev/fireant/apis/fireant-restful-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fireant/apis/fireant-restful-api/revisions/c9b3aa855f95?raw)
