Upload button grayed out

Hi guys..

I was trying to upload an image for facebook open graph via upload option in customize, but the upload button is grayed out. I am unable to upload the image. It seems like a bug to me. Any idea?

Thanks

5 个赞

在 Meta 上已确认此错误。

由于某种原因,该按钮默认处于禁用状态。


@Pravi,作为临时解决方法,您可以编辑 HTML,删除上图中高亮显示的部分。按钮将恢复可点击并正常工作。

cc @awesomerobot

8 个赞

Thank you so much.. The temporary solution worked.
Hope you guys will fix the bugs soon.

Looks like a valid bug @sam

The regex changed in this commit FIX: validates 'ThemeField' name when used in a SCSS variable · discourse/discourse@24e89b6 · GitHub is causing the issue.

This regex will fail if your image is capitalized like : IMG_0039 for example, not sure about the motivation to only allow downcase.

3 个赞

I’ll fix it tomorrow.

5 个赞

Thanks for reporting that @Pravi. I’ve pushed a fix :banana:

https://github.com/discourse/discourse/commit/27a368bb70c2755598d38c728e589ab2968d40ac

11 个赞