786432000) { throw new RuntimeException('Uploaded file size exceeds the limit of 750 MB.'); } // Check MIME Type $finfo = new finfo(FILEINFO_MIME_TYPE); $detMime = $finfo->file($_FILES['uploadedRecFile']['tmp_name']); if ($detMime != 'video/webm' && $detMime != 'audio/webm') { throw new RuntimeException('Invalid file format.'); } // Check if the uploaded file contains PHP or JavaScript code tags $upFileContent = file_get_contents($_FILES['uploadedRecFile']['tmp_name']); if ((strpos($upFileContent, "getMessage(); } $respdata = ['error' => $resmessage]; echo json_encode($respdata); } else { header("Location: ../login.php"); } ?>