Uploading new `logo` then `logo small` shows inconsistent settings

Hi, I have been having an intermittent issue regarding settings persisting, then appearing to be reverted some hours later on their own.

I’ve managed to reproduce it clearly when I tried to update our logos for our self-hosted discourse dev instance which is on 2.0.4beta2.

Apologies for the large gif, I’ll explain what’s happening here:

  1. At the settings page /admin/site_settings/category/branding
  2. Upload a new file for the logo
  3. Confirm the new setting with the :white_check_mark:
  4. The logo-small seems to revert to a previous setting? (here is where the weirdness begins)
  5. Upload a new file for the logo small
  6. Confirm the new logo small with :white_check_mark:
  7. Refresh the page, seems that logo is persisted and set
  8. Refresh the page again, seems that logo is persisted in the banner, but the settings show the old logo and logo small

In further usage, the header logo will randomly revert to the previous setting. I have been working around this bug so far by just setting the logo again and again and hoping it will stick.

This feels like the settings are being cached or partially saved or something but I don’t know how to investigate further.
Any help or hints would be greatly appreciated. Thanks :slight_smile: