A user, pfaffman, encountered an issue with importing a theme from a file, where the “upload” button didn’t work after selecting the file. Pad_Pors reported a similar issue with themes containing attached files. However, jomaxro couldn’t reproduce the problem.
pfaffman provided an error log, which suggested an “Unknown type passed to set field” error. cpradio suspected the issue was related to an upload/asset in the theme file. Upon inspection, pfaffman found a section in the JSON file referencing an uploaded asset. cpradio suggested commenting out the filename, but this didn’t resolve the issue.
However, pfaffman eventually found that removing the upload section solved the problem. cpradio and pfaffman confirmed that the issue was related to the upload. sam explained that the problem is due to a change in how uploads are handled in theme exports, where they are now base64 encoded in the JSON payload.
I just tried to import a theme from a file. When I select “from my device” I get the selector and choose the file, but then the “upload” button doesn’t do anything. I tested on two instances Discourse 1.9.0.beta13 and Discourse 1.9.0.beta14.