Theme components: Update to latest deletes uploads

Maybe this is a normal behaviour, but when I update a theme component from a git repository all uploads for that component are deleted. Is this a bug? Thanks!

This is normal behaviour. Interesting timing, though: I was working on a mini-feature today that warns you before running the update when the theme has local uploads or changes. PR is here.

7 Likes

Thanks! So if a theme component requires eg an image, best practice would be to upload it to a hidden topic?

That used to be the way Discourse managed assets. A media library is planned, but AFAIK has no firm ETA.

4 Likes

Is it still the case? I don’t have a warning when I upload files to a remote component.