mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
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:
parent
f165c99d77
commit
682841e92d
|
@ -37,7 +37,7 @@
|
|||
disabled={{this.uploading}}
|
||||
type="file"
|
||||
multiple="true"
|
||||
accept=".png,.gif"
|
||||
accept="image/*, .heif, .heic"
|
||||
/>
|
||||
<DButton
|
||||
@translatedLabel={{this.buttonLabel}}
|
||||
|
|
Loading…
Reference in New Issue
Block a user