# Theme asset uploader "remembers" wrong file

**URL:** https://meta.discourse.org/t/theme-asset-uploader-remembers-wrong-file/163858
**Category:** Bug
**Created:** [September 13, 2020, 12:47am UTC](https://meta.discourse.org/t/theme-asset-uploader-remembers-wrong-file/163858 "2020-09-13T00:47:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![paulrudy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrudy/32/259901_2.png) [@paulrudy](https://meta.discourse.org/u/paulrudy)
#### Post date: [September 13, 2020, 12:47am UTC](https://meta.discourse.org/t/theme-asset-uploader-remembers-wrong-file/163858/1 "2020-09-13T00:47:11Z")

</div>

Hello Discourse team. First bug report, I apologize if I’ve made any mistakes.

1. Upload a font `foo.woff` in the asset uploader in theme settings
2. Delete the asset in the theme settings
3. Rename the font locally to `bar.woff`
4. Upload the renamed font

Expected behavior: Discourse accepts new upload and its name is displayed as `bar.woff`  
Buggy behavior: The uploaded file’s name is displayed as `foo.woff`

Note: I am using BackBlaze B2 as my S3 assets storage in conjunction with BunnyCDN.

I’m not sure whether the `bar.woff` is being ignored and instead reassociated with `foo.woff`, or if the `bar.woff` is being renamed to `foo.woff`.

---

<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: [September 13, 2020, 2:45am UTC](https://meta.discourse.org/t/theme-asset-uploader-remembers-wrong-file/163858/2 "2020-09-13T02:45:26Z")

</div>

Uploaded files (and images) are matched by checksum, so my _guess_ is that it thinks you’re uploading the same file again. If there’s any way to change the checksum of the file, I suspect that would fix the problem, but I realize modifying a font file is a bit .. weird.

---

<div class="post-metadata">

### Author: ![paulrudy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrudy/32/259901_2.png) [@paulrudy](https://meta.discourse.org/u/paulrudy)
#### Post date: [September 13, 2020, 3:21am UTC](https://meta.discourse.org/t/theme-asset-uploader-remembers-wrong-file/163858/3 "2020-09-13T03:21:28Z")

</div>

Yeah, fontland seems like a frightening place. Thanks, I’m glad there’s a reasonable explanation, though. It sounds like the checksum matching might have the added benefit of preventing wasted storage because of duplicate uploads, which would be cool if true.
