diff --git a/Backend/Controllers/FileHandler/upload.php b/Backend/Controllers/FileHandler/upload.php index d239449..281c3ea 100644 --- a/Backend/Controllers/FileHandler/upload.php +++ b/Backend/Controllers/FileHandler/upload.php @@ -17,7 +17,6 @@ if(isset($_SESSION['token'])){ if(!isset($group->game_data_id)){ if(isset($_POST['submitUpload'])){ //Get the data from the user form - echo "tesz"; $gameFile = $_FILES['gameFile']; $desc = $_POST['description']; $title = $_POST['gameTitle']; @@ -32,12 +31,12 @@ if(isset($_SESSION['token'])){ $thumbnailFileTmp = $_FILES['thumbnailFile']['tmp_name'];//Tmp location of the file $thumbnailFileError =$_FILES['thumbnailFile']['error'];//File error - if($thumbnailFileError === 0 && $gameFileError === 0){ + if($gameFileError === 0){ $gameData = new GameData(); $gameData->game_name = $title; $gameData->game_link = ZipFileHandler($gameFileName,$gameFileTmp); $gameData->description = $desc; - if(isset($thumbnail)){ + if(isset($thumbnail) && $thumbnailFileError === 0){ $gameData->img = imagesFileHandler($thumbnailFileName,$thumbnailFileTmp); } $gameData->is_web_Based = $isWebBased; diff --git a/Frontend/group.php b/Frontend/group.php index c6e267c..2d1fa36 100644 --- a/Frontend/group.php +++ b/Frontend/group.php @@ -35,6 +35,11 @@ +
+ +
+ +
\ No newline at end of file