file_upload.php 354 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
    
    
    $code = escapeshellcmd($_POST["code_hidden"]);
    $name = "./user_uploads/" . $code;
    
    move_uploaded_file($_FILES['file']['tmp_name'], $name);

    ////for debugging:
    //file_put_contents( 'yowtf', print_r($_POST["code_hidden"], true));
    //
    //
    //file_put_contents( 'yohai', print_r($name, true));
    //
    
?>