check if data was recieved

This commit is contained in:
Lee 2023-04-15 19:00:51 +01:00
parent d6144cda0c
commit e2b96b37c6

@ -28,6 +28,12 @@ function isZipFile($file)
$mapId = generateMapId(); // the id of the map $mapId = generateMapId(); // the id of the map
$map = $_FILES["map"]; // the file to upload $map = $_FILES["map"]; // the file to upload
if (!isset($map)) { // if the file is not set
echo "No file was uploaded";
die();
}
$file = $map["tmp_name"]; // the temporary file path $file = $map["tmp_name"]; // the temporary file path
$size = $map["size"]; // the size of the file $size = $map["size"]; // the size of the file