# Uploading a logo after deleting the current logo without submitting in between shows an error

**URL:** https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153
**Category:** UX
**Created:** [June 6, 2025, 5:27pm UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153 "2025-06-06T17:27:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 6, 2025, 5:27pm UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/1 "2025-06-06T17:27:37Z")

</div>

I just wanted to change the logo I had uploaded. So I went to /admin/config/logo, removed the current logo, and tried to upload the new one. It failed:` POST https://example.discourse.group/uploads/complete-external-upload 400 (Bad Request)`

It works when I scroll down and click submit to save after deleting the old logo before uploading the new one. It also works to drop the new logo without deleting the old one, but I didn’t try that at first because as long as there is a logo in place, the field doesn’t say I can do that.

I also tried uploading a new logo, deleting that, and uploading another one, which also fails:

* * *

Okay, actually the upload works. When you delete the old logo, upload a new one, ignore the error, and submit the changes, you will see the new logo. So, what does the error tell me, and why are the buttons disabled afterwards when it magically still works?

---

<div class="post-metadata">

### Author: ![hugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugh/32/336717_2.png) [@hugh](https://meta.discourse.org/u/hugh)
#### Post date: [June 10, 2025, 4:13am UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/3 "2025-06-10T04:13:35Z")

</div>

Thanks for posting this, @Moin.

I just tested this out, and it looks like the error shows when you drag-and-drop and image, but not when you click to upload - if you do that then there’s no issue.

That’s certainly a bug, so w’ell have a look and see what we can do about it.

Thanks!

---

<div class="post-metadata">

### Author: ![hugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugh/32/336717_2.png) [@hugh](https://meta.discourse.org/u/hugh)
#### Post date: [June 20, 2025, 3:41am UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/5 "2025-06-20T03:41:25Z")

</div>

Upon further testing, this issue only seemed to be happening intermittently, and not consistently with the same images or anything else like that. That being said, this has been resolved as part of another update, and I can no longer replicate it on any site.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 20, 2025, 4:09am UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/6 "2025-06-20T04:09:49Z")

</div>

At the moment, I can still reproduce it on my forum, which was updated about 15 hours ago. I will try again after the next deploy

---

<div class="post-metadata">

### Author: ![hugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugh/32/336717_2.png) [@hugh](https://meta.discourse.org/u/hugh)
#### Post date: [June 20, 2025, 4:21am UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/7 "2025-06-20T04:21:53Z")

</div>

To help debug this further:

1. Does this happen every time you try to upload an image with drag-and-drop? Does it happen with any image you try it with?
2. Do any errors show up in your console? If so, could you screenshot those and post them here?
3. If it is happening consistently with one particular image, could you upload that image here?

Thanks!

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 20, 2025, 4:37am UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/8 "2025-06-20T04:37:14Z")

</div>

> [@hugh](#):
>
> Does this happen every time you try to upload an image with drag-and-drop? Does it happen with any image you try it with?

So far, it happens every time I try to upload an image with drag-and-drop **after deleting the current image without saving in between**.  
I recorded another video using the pencil sketch default image and the site setting interface instead of the config page. But the issue remains the same on both. Though the save button is much further down on the config page, which is why not saving after deleting is more likely there.

> [@hugh](#):
>
> Do any errors show up in your console?

Yes, I don’t think the screenshot reveals much more than what I already mentioned in my first post.

> [@Moin](#):
>
> It failed:` POST https://example.discourse.group/uploads/complete-external-upload 400 (Bad Request)`

 ![error](https://global.discourse-cdn.com/meta/original/4X/9/7/a/97ac3afa489ffa0fc0a736af1e893f4c5338dc2e.png)

> [@hugh](#):
>
> If it is happening consistently with one particular image, could you upload that image here?

It happens with every image I tried.

 ![discourse-logo-sketch](https://global.discourse-cdn.com/meta/original/4X/e/3/c/e3c72b8e052a970c2ee5cd94f79bd35914ca1f6b.png)  
This is the one used in the recording above.

---

<div class="post-metadata">

### Author: ![hugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hugh/32/336717_2.png) [@hugh](https://meta.discourse.org/u/hugh)
#### Post date: [June 20, 2025, 4:40am UTC](https://meta.discourse.org/t/uploading-a-logo-after-deleting-the-current-logo-without-submitting-in-between-shows-an-error/369153/9 "2025-06-20T04:40:02Z")

</div>

OK - thanks - will do some more testing and here and see what we can figure out.
