# Comment lier des images avec un sujet

**URL:** <https://meta.discourse.org/t/how-to-link-images-with-topic/321246>\
**Category:** Development\
**Created:** [Août 12, 2024, 12:38 UTC](https://meta.discourse.org/t/how-to-link-images-with-topic/321246 "2024-08-12T12:38:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [Août 13, 2024, 9:00 UTC](https://meta.discourse.org/t/how-to-link-images-with-topic/321246/2 "2024-08-13T09:00:46Z")

</div>

Il existe une [fonctionnalité d’API de plugin](https://github.com/discourse/discourse/blob/559c9dfe0afc4edc5414b9143e1e4248993a5d54/lib/plugin/instance.rb#L331-L333) `register_upload_in_use`

Pour un exemple sur la façon de l’utiliser, voir le [code dans le plugin Chat](https://github.com/discourse/discourse/blob/559c9dfe0afc4edc5414b9143e1e4248993a5d54/plugins/chat/plugin.rb#L120-L133).

---

_[View the full topic](https://meta.discourse.org/t/how-to-link-images-with-topic/321246)._
