From 1d38c59643c5b8d905a1475ea2bb6c902fc21187 Mon Sep 17 00:00:00 2001
From: Nico Athanassiadis <nico@dsv.su.se>
Date: Tue, 4 Feb 2025 11:28:19 +0100
Subject: [PATCH] Changed arrow function so that the parameter is clearly shown
 inside a parentheses. Changed the alert text a bit to make it more clear that
 they need to select an audio or video file to upload.

---
 src/main/resources/static/js/script.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/static/js/script.js b/src/main/resources/static/js/script.js
index 119651b..666e470 100644
--- a/src/main/resources/static/js/script.js
+++ b/src/main/resources/static/js/script.js
@@ -49,8 +49,8 @@ function validateFile() {
 
     if (file) {
         const fileType = file.type;
-        if (!allowedMimeTypes.some(type => fileType.startsWith(type))) {
-            alert('File type is not an audio or video file.\nPlease upload an audio or video file.');
+        if (!allowedMimeTypes.some((type) => fileType.startsWith(type))) {
+            alert('File type is not an audio or video file.\nPlease select an audio or video file to upload.');
             fileInput.value = '';
             return false;
         }