mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
remove .txt and .csv
This commit is contained in:
@@ -16,7 +16,7 @@ const DragNdrop = ({ onFileSelected }) => {
|
||||
const { LL } = useI18nContext();
|
||||
|
||||
const checkFileExtension = (file: File) => {
|
||||
const validExtensions = ['.json', '.txt', '.csv', '.bin', '.md5'];
|
||||
const validExtensions = ['.json', '.bin', '.md5'];
|
||||
const fileName = file.name;
|
||||
const fileExtension = fileName.substring(fileName.lastIndexOf('.'));
|
||||
if (validExtensions.includes(fileExtension)) {
|
||||
|
||||
Reference in New Issue
Block a user