# 로고 이미지 변경이 실패합니다

**URL:** https://meta.discourse.org/t/changing-logo-image-fails/156564
**Category:** Bug
**Created:** [7월 2, 2020, 7:59오전 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564 "2020-07-02T07:59:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [7월 2, 2020, 7:59오전 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564/1 "2020-07-02T07:59:28Z")

</div>

최신 버전(v2.6.0.beta1 +53 [6bab2acc9f](https://github.com/discourse/discourse/commits/6bab2acc9f5061c9060a6021409d445fb381d7e6))을 사용하고 있는데, 이제 로고 이미지를 업데이트할 수 없습니다:

 ![Jul-02-2020 09-50-32](https://global.discourse-cdn.com/meta/original/3X/f/2/f2866b15ccd1a0c6f6ea98dc719ea2f9b9280faa.gif)

새로운 파일을 업로드하고 녹색 체크 표시를 클릭하면 이미지가 사라지고 로고가 표시되지 않습니다(제목만 표시됩니다). Chrome과 Firefox에서 동일한 오류가 발생하며(최신 macOS를 사용 중입니다),

다양한 이미지를 업로드해 보았지만 동일한 결과가 나왔습니다(png와 jpg 모두).

S3를 활성화해 두었지만, 게시글을 작성할 때 해당 이미지를 업로드하면 정상적으로 표시되므로, 이것이 문제인 것 같지는 않습니다.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [7월 2, 2020, 9:06오전 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564/2 "2020-07-02T09:06:39Z")

</div>

초록색 체크마크를 클릭하기 전에 이미지가 업로드되는 것 같습니다. 버킷에서 로고가 존재하는지, 그리고 어디에 있는지(original/\_X?) 확인해 주시겠습니까?

저는 [b9174c8e8a](https://github.com/discourse/discourse/commits/b9174c8e8ab7e0a5fdb782cd8625d26475ce777e) 커밋을 적용해 봤는데, 잘 작동하는 것 같습니다 🤔

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [7월 2, 2020, 10:31오전 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564/3 "2020-07-02T10:31:24Z")

</div>

여기 내 테스트 이미지 중 하나가 보입니다: [https://lacomunidad-nachotime2.s3.amazonaws.com/original/2X/2/2aa79b03200e3ee4e9a9bb7e6d4c6d154ce38324.jpeg](https://lacomunidad-nachotime2.s3.amazonaws.com/original/2X/2/2aa79b03200e3ee4e9a9bb7e6d4c6d154ce38324.jpeg)

나만 그런 게 아니라면, S3를 비활성화한 후 로고를 업로드하고 다시 S3를 활성화하는 방식으로 문제를 해결했습니다.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [7월 3, 2020, 11:54오전 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564/4 "2020-07-03T11:54:02Z")

</div>

리포트 감사합니다 - @zogstrip 님이 이 문제에 대한 수정을 방금 적용했습니다:

> <https://github.com/discourse/discourse/commit/f43c0a5d857d34168c96a5d59e5481973ddabe25>
>
> When uploading an image as a site setting, we need to return the "raw" URL, othe…rwise
> when saving the site setting, the upload won't be looked up properly.
> 
> Follow-up-to: f11363d446

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [7월 3, 2020, 6:49오후 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564/5 "2020-07-03T18:49:24Z")

</div>

사이트 설정에 이미지가 이미 업로드되어 있었다면, 다시 업데이트해 주세요.

> <https://github.com/discourse/discourse/commit/48b4ed41f5b70e7f068931c071d1d4aae72a4d64>
>
> The previous fix (f43c0a5d857d34) wasn't working for images that were already up…loaded.
> The "metadata" (eg. 'for\_\*' and 'secure' attributes) were not added to existing uploads.
> 
> Also used 'Upload.get\_from\_url' is the admin/site\_setting controller to properly retrieve
> an upload from its URL.
> 
> Fixed the Upload::URL\_REGEX to use the \\h (hexadecimal) for the SHA
> 
> Follow-up-to: f43c0a5d857d34

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [7월 5, 2020, 1:00오전 UTC](https://meta.discourse.org/t/changing-logo-image-fails/156564/6 "2020-07-05T01:00:00Z")

</div>

이 주제는 34시간 후 자동으로 닫혔습니다. 더 이상 답변을 게시할 수 없습니다.
