0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.79.179


Current Path : /proc/thread-self/root/var/www/html/bnu_old/adm/
Upload File :
Current File : //proc/thread-self/root/var/www/html/bnu_old/adm/upload_file.php

<?php
    $ds          = DIRECTORY_SEPARATOR;
    $date = date("dmYhis");
   	$file_resp="";
	if ( 0 < $_FILES['file']['error'] ) 
	{
		echo 'Error: ' . $_FILES['file']['error'] . '<br>';
		$file_resp="Failed to upload file!";
	}
	else 
	{
		$name = $date.'_'.$_FILES['file']['name'];
		$file_name = str_replace($_FILES['file']['name'],$name , $_FILES['file']['name']); // 
		$path = realpath(__DIR__ . '/..').$ds.'upload'.$ds.$file_name;
		move_uploaded_file($_FILES['file']['tmp_name'], $path);
	}	
	echo $file_name; 
?>