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 Likes

Bug confirmed here on Meta.

For some reason the button is disabled by default

@Pravi, as a temporary workaround you can edit the HTML by deleting the part highlighted in the image above. The button will return to be clickable and working.

cc @awesomerobot

8 Likes

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 https://github.com/discourse/discourse/commit/24e89b6b38a0fc13c0cbbab7fe23d9011e0148dc 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 Likes

I’ll fix it tomorrow.

5 Likes

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

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

11 Likes