# 无法在设置中上传图片

**URL:** https://meta.discourse.org/t/cant-upload-image-in-settings/352213
**Category:** Bug
**Created:** [2025年二月14日 05:28 UTC](https://meta.discourse.org/t/cant-upload-image-in-settings/352213 "2025-02-14T05:28:44Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2025年二月14日 05:28 UTC](https://meta.discourse.org/t/cant-upload-image-in-settings/352213/1 "2025-02-14T05:28:44Z")

</div>

[DEV: Convert UppyImageUploader to gjs by CvX · Pull Request #31310 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/31310) 的一个副作用

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/6/0/86016ee90eaf726e457d8a34d85d5e10639e315e.png)

上传的 URL 返回 `[Object object]`。

`imageUrl` 包含完整的对象，例如 `\n{id: 2355, url: '/uploads/default/original/2X/5/50b97bde3858cadb6982fdd6a6d2ab33cd572168.png', ...`

我认为问题出在  
[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/admin/addon/components/site-settings/upload.hbs#L4](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/admin/addon/components/site-settings/upload.hbs#L4)

> <https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/components/uppy-image-uploader.gjs#L42-L48>

---

_[View the full topic](https://meta.discourse.org/t/cant-upload-image-in-settings/352213)._
