maybe work

This commit is contained in:
Lee 2023-04-15 14:27:41 +01:00
parent af4e98dbae
commit f30df979c0
2 changed files with 2 additions and 3 deletions

@ -23,7 +23,7 @@
<div class="flex items-center justify-center">
<input
type="file"
name="file"
name="map"
class="bg-gray-700 text-white font-bold py-2 px-4 rounded"
/>
<div class="flex items-center justify-center">

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