mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56: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() {
|
||||
const input = document.createElement("input");
|
||||
input.type = "file";
|
||||
input.accept = "audio/*,video/*,image/*";
|
||||
input.addEventListener("change", async () => {
|
||||
try {
|
||||
await uploadLocalMedia(
|
||||
|
Loading…
x
Reference in New Issue
Block a user