# Лучший способ загрузки изображений в плагин/тему?

**URL:** <https://meta.discourse.org/t/best-way-to-upload-images-to-a-plugin-theme/360581>\
**Category:** Development\
**Tags:** plugin-api\
**Created:** [06.Апрель.2025 02:39:10 UTC](https://meta.discourse.org/t/best-way-to-upload-images-to-a-plugin-theme/360581 "2025-04-06T02:39:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [06.Апрель.2025 21:31:54 UTC](https://meta.discourse.org/t/best-way-to-upload-images-to-a-plugin-theme/360581/2 "2025-04-06T21:31:54Z")

</div>

> [@bitmage](#):
>
> Значит, есть ли способ загрузить изображения, либо в тему, либо в плагин, так чтобы они оказались по детерминированному URL?

Нет. Вы ссылаетесь на них по имени переменной, как вы и сделали? Все загрузки сохраняются в виде хэша их содержимого.

> [@Include assets (e.g. images, fonts) in themes and components](https://meta.discourse.org/t/include-assets-e-g-images-fonts-in-themes-and-components/62459):
>
> Themes and theme components allow you to handle uploaded assets such as images and fonts. You can control what assets your theme accepts using the site setting: theme authorized extensions Including assets in themes and components For remote themes Remote themes include: Themes and components installed from the Popular list of themes Themes and components installed using the From a git repository method To upload assets to a remote theme or theme component, see [Create and share a font theme …](https://meta.discourse.org/t/create-and-share-a-font-theme-component/62462)

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-upload-images-to-a-plugin-theme/360581)._
