# O logotipo não aparece, mostrando-se quebrado após o upload

**URL:** https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414
**Category:** Support
**Created:** [Abril 30, 2019, 9:30am UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414 "2019-04-30T09:30:05Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Brajmohan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brajmohan_kumar/32/138760_2.png) [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)
#### Post date: [Abril 30, 2019, 9:30am UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/1 "2019-04-30T09:30:05Z")

</div>

Hi team,

To refresh everything I tried to delete all the logo uploaded by me previously. I connected my site through FTP and deleted all the image from  
`/var/discourse/shared/standalone/uploads/default/original/1X`

Now, I am trying to upload the same logo that I deleted from the setting panel. But after upload, it is showing broken. [http://prntscr.com/nimekp](http://prntscr.com/nimekp)

Can anyone tell me what is happening here? I also tried uploading through Installation Wizard but the same issue.

Thank you!

---

<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: [Abril 30, 2019, 12:56pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/2 "2019-04-30T12:56:53Z")

</div>

Why would you delete the logo via and not via the ui?

You might be able to put it back via ftp. You’ll need to use the same filename and path.

You’ll need to upload a different logo. My guess is that Discourse knows that you’ve uploaded the file and won’t take a duplicate. You could try making a trivial change to the logo so that it’ll have a new hash.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Abril 30, 2019, 1:50pm 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.

---

<div class="post-metadata">

### Author: ![Brajmohan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brajmohan_kumar/32/138760_2.png) [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)
#### Post date: [Abril 30, 2019, 3:07pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/4 "2019-04-30T15:07:08Z")

</div>

Please check and tell me if I have done everything correctly:-

> **[Screenshot](https://prnt.sc/nir59y)**
>
> Captured with Lightshot

Also, tell me how can I view and edit the database as we see in phpmyadmin (GUI). If it is not possible to view the database then how can I access it through the terminal?

Thank you!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Abril 30, 2019, 3:17pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/5 "2019-04-30T15:17:38Z")

</div>

> [@Brajmohan\_Kumar](#):
>
> tell me if I have done everything correctly

Looks ok.

> [@Brajmohan\_Kumar](#):
>
> how can I access it through the terminal?

instead of doing `rails c` you can do `rails db`.

---

<div class="post-metadata">

### Author: ![Brajmohan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brajmohan_kumar/32/138760_2.png) [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)
#### Post date: [Abril 30, 2019, 3:20pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/6 "2019-04-30T15:20:12Z")

</div>

Is it possible to view and manage database through UI?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [Abril 30, 2019, 3:21pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/7 "2019-04-30T15:21:21Z")

</div>

Strongly suggest you read the RoR guides

> **[Ruby on Rails Guides](https://guides.rubyonrails.org/)**
>
> Ruby on Rails Guides

---

<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: [Abril 30, 2019, 3:21pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/8 "2019-04-30T15:21:23Z")

</div>

The easiest way to _read_ the database from the GUI is the [Discourse Data Explorer](https://meta.discourse.org/t/data-explorer-plugin/32566).

`rails c` puts you in the Rails console. It’s generally safest to use the console as you’re using the Discourse code itself rather than blindly making changes to a database that you don’t understand.

---

<div class="post-metadata">

### Author: ![Brajmohan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brajmohan_kumar/32/138760_2.png) [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)
#### Post date: [Abril 30, 2019, 3:35pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/9 "2019-04-30T15:35:34Z")

</div>

Thank you for clearing my doubt.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Maio 30, 2019, 3:48pm UTC](https://meta.discourse.org/t/logo-is-not-appearing-showing-broken-after-upload/116414/10 "2019-05-30T15:48:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
