I\'m new to HTML/PHP and I\'m trying to create a simple php file upload page. I have this as my HTML
With the PHP function move_uploaded_file(string $filename, string $destination) you can move the file to your desired path.
You must add this snippet of code:
move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file);
after that:
echo "File is an image - " . $check["mime"] . ".";
You need to move the uploaded file from the temp directory it was uploaded into, into your target directory. See the PHP docs of move_uploaded_files