DEV: Expand custom emojis allowed image types

Currently, the custom emoji file input only accepts `png` and `gif`. No check is made server side, and uploading any image format supported by Discourse works.
This fix allows upload of any image type supported by "image/*", plus `heif` and `heic` since they're also officially supported by Discourse.

It's worth noting that the avatar file input is currently set as `accept="image/*"`
This commit is contained in:
Coin-coin le Canapin 2023-09-07 10:50:16 +02:00
parent f165c99d77
commit 682841e92d

View File

@ -37,7 +37,7 @@
disabled={{this.uploading}}
type="file"
multiple="true"
accept=".png,.gif"
accept="image/*, .heif, .heic"
/>
<DButton
@translatedLabel={{this.buttonLabel}}