# 上传后徽标未显示，显示为损坏

**URL:** <https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414>\
**Category:** Product Support\
**Created:** [2019 年4 月 30 日 09:30 UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414 "2019-04-30T09:30:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
发布日期： [2019 年4 月 30 日 13:50 UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/3 "2019-04-30T13:50:14Z")

</div>

> [@Brajmohan\_Kumar](#):
>
> Can anyone tell me what is happening here?

You’ve shot yourself in the 🦶.

You’ve delete all the uploaded files but Discourse also keeps track of the `Uploads` in the database.  
Since we use the SHA1 of the files to prevent duplicates, when you upload the same exact file, Discourse thinks it already has it.

If you want to fix it, you’ll have to delete all the uploads records. SSH into your server and then

```plaintext
cd /var/discourse
./launcher enter app
rails c
Upload.where("id > 0").destroy_all

```

⚠ Be sure to take a backup before as this is a **destructive** operation.

FYI: There’s no need to delete uploaded file in Discourse as we’ll automatically delete unused files after a little while.

---

_[View the full topic](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414)._
