Upload PDF file and rename it
Class notes must be uploaded in PDF format.";
} else {
$name = $_POST['name'];
$result = move_uploaded_file($_FILES['classnotes']['tmp_name'], FILEREPOSITORY."/$name.pdf");
if ($result == 1) echo "
File successfully uploaded.
";
else echo "
There was a problem uploading the file.
";
} #endIF
} #endIF
?>