File Upload
You have to choose a file!";
} else {
$uploaddir = "../../media/";
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
echo "The post was successfully uploaded and is now published.
"; } else { echo "During the uploading process an error occured!
Error Code:" . ($_FILES['userfile']['error'] . "