Manage file uploads by checking for uploaded files and moving them to a desired directory.
Source Code
if (isset($_FILES['file'])) {
move_uploaded_file($_FILES['file']['tmp_name'], 'uploads/'.$_FILES['file']['name']);
echo "File uploaded successfully!";
}