Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php move_uploaded_file

$upload_folder = "upload/";
$file_location = $upload_folder . basename($_FILES["fileToUpload"]["name"]);

     if(isset($_FILES['fileToUpload'])){ 

        if(move_uploaded_file($_FILES['fileToUpload']['tmp_name'], $file_location)){
            
            echo 'Files has uploaded'; 
        };

     } 
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
3+6 =