From 44de537459f9ebc41432eab808ab9a2f6eefdfc6 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 4 Jan 2023 13:57:05 +0100 Subject: [PATCH] Restrict file picker extensions --- data/www/index.html | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/www/index.html b/data/www/index.html index 3a8283d..f5c43b7 100644 --- a/data/www/index.html +++ b/data/www/index.html @@ -23,7 +23,7 @@
- +
diff --git a/src/main.cpp b/src/main.cpp index 326dc85..b3f529a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -58,7 +58,7 @@ byte currentVolume = 12; bool fileIsValid(String fileName) { - return !fileName.startsWith(".") && (fileName.endsWith(".mp3") || fileName.endsWith(".aac") || fileName.endsWith(".wav")); + return !fileName.startsWith(".") && (fileName.endsWith(".mp3") || fileName.endsWith(".wav")); } void clearMessageArea()