File Directory Php

" enctype="multipart/form-data" method="post">
   Last Name: 
   Class Notes: 
   



   define ("FILEREPOSITORY","./");
   if (is_uploaded_file($_FILES['classnotes']['tmp_name'])) {
      if ($_FILES['classnotes']['type'] != "application/pdf") {
         echo "

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
?>