From f30df979c049ba0b7a9fffb4ec7a56b0a5861f15 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Sat, 15 Apr 2023 14:27:41 +0100 Subject: [PATCH] maybe work --- index.html | 2 +- upload.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 29f5d2b..b01e25d 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@
diff --git a/upload.php b/upload.php index 4eaf37a..15f0e41 100644 --- a/upload.php +++ b/upload.php @@ -29,8 +29,7 @@ function isZipFile($file) $mapId = generateMapId(); // the id of the map -$map = $_FILES["map"]; -$file = $map["tmp_name"]; +$file = $_FILES["map"]["tmp_name"]; // the file to upload if (!isZipFile($file)) { echo "The file is not a zip file";