# Làm thế nào để truy cập các tệp đã tải lên (tệp đính kèm)?

Khi trường tải lên được sử dụng, hệ thống sẽ lưu tệp vào Thư viện phương tiện và ID phần đính kèm vào DB. “Số” đó là ID tệp đính kèm có thể được sử dụng để sử dụng và hiển thị nó.

Khi bạn có  sẵn **ID tệp đính kèm** đó,  bạn có thể sử dụng nó cho mọi thứ bạn cần. Bạn có thể tạo liên kết, ví dụ:\
[http://wp.example.net/?attachment\_id=n](http://support.wpindeed.com/scp/l.php?url=http%3A%2F%2Fwp.example.net%2F%3Fattachment_id%3Dn\&auth=180afc6e1376fa6d885b0b0c0de9eb6f) , trong đó n là số ID tệp đính kèm.

[https://codex.wordpress.org/Function\_Reference/get\_attachment\_link](http://support.wpindeed.com/scp/l.php?url=https%3A%2F%2Fcodex.wordpress.org%2FFunction_Reference%2Fget_attachment_link\&auth=180afc6e1376fa6d885b0b0c0de9eb6f)


---

# 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://wiki.atpweb.vn/wiki-atpweb/plugin/ultimate-affiliate-pro/loi-thuong-gap/lam-the-nao-de-truy-cap-cac-tep-da-tai-len-tep-dinh-kem.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.
