Answers for "move_uploaded_file($file['tmp_name'], $file_name); with laravel"

PHP
3

php move file

//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
Posted by: Guest on July-15-2020
0

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'; 
        };

     }
Posted by: Guest on November-17-2020

Code answers related to "move_uploaded_file($file['tmp_name'], $file_name); with laravel"

Browse Popular Code Answers by Language