File Upload
You have to choose a file!";
} else {
$blog = $_POST['blog'];
$uploaddir = "../..//articles/$blog/";
$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'] . "