# How do I register a public asset in a plugin?

**URL:** <https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660>\
**Category:** Development\
**Created:** [August 23, 2017, 10:40pm UTC](https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660 "2017-08-23T22:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [March 25, 2020, 11:06pm UTC](https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660/5 "2020-03-25T23:06:21Z")

</div>

> [@Nikolay](#):
>
> Hello, can i get information too?

Sure, that topic was deleted. The topic gave a link to an old Discourse plugin that has an example of how to register public assets in a plugin: [GitHub - eviltrout/trout\_emoji: Adds an evil trout emoji to a discourse install · GitHub](https://github.com/eviltrout/trout_emoji).

The last time I tested this, adding images to a plugin in the `public/images` directory will make them available on the server in `/plugins/plugin_name/images/`

The plugin name that you use in the path is the plugin name that you give in the metadata at the top of the `plugin.rb` file, for example `/plugins/trout_emoji/images/trout-square.jpg`

---

_[View the full topic](https://meta.discourse.org/t/how-do-i-register-a-public-asset-in-a-plugin/68660)._
