diff --git a/assets/script.js b/assets/script.js
index 5d68ead..053196f 100644
--- a/assets/script.js
+++ b/assets/script.js
@@ -544,6 +544,7 @@ function uploadFile() {
const file = fileInput.files[0];
let formData = new FormData();
formData.append('userfile', file);
+ formData.append('action', 'uploadFiles');
let xhr = new XMLHttpRequest();
xhr.open('POST', '/upload', true);
diff --git a/pages/home/upload.html b/pages/home/upload.html
index fb0edfd..eb718f1 100644
--- a/pages/home/upload.html
+++ b/pages/home/upload.html
@@ -2,7 +2,6 @@