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";