mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Limit types of media that can be uploaded to local media (#11683)
This commit is contained in:
parent
7f90ffa82f
commit
806b1296b0
@ -242,6 +242,7 @@ class PanelMediaBrowser extends LitElement {
|
|||||||
private async _startUpload() {
|
private async _startUpload() {
|
||||||
const input = document.createElement("input");
|
const input = document.createElement("input");
|
||||||
input.type = "file";
|
input.type = "file";
|
||||||
|
input.accept = "audio/*,video/*,image/*";
|
||||||
input.addEventListener("change", async () => {
|
input.addEventListener("change", async () => {
|
||||||
try {
|
try {
|
||||||
await uploadLocalMedia(
|
await uploadLocalMedia(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user