Limit types of media that can be uploaded to local media (#11683)

This commit is contained in:
Paulus Schoutsen 2022-02-14 06:33:21 -08:00 committed by GitHub
parent 7f90ffa82f
commit 806b1296b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(