title: Php Video Upload Script
body: <p>I am trying to allow users to upload videos via this form </p>
  
  <pre><code>       &lt;form method='POST' name='uploadform' enctype='multipart/form-data' action=''&gt;
                                  Video: &lt;input type='file' name='filename' /&gt;&lt;br/&gt;
                                         &lt;input type='submit' name='cmdSubmit' value='Upload' /&gt;";
  </code></pre>
  
  <p>Then with this php script I am trying to move the videos into another folder for storage.</p>
  
  <pre><code>            if($_POST['cmdSubmit']){
                              $filename = basename($_FILES['filename']['name']);
                              move_uploaded_file($_FILES['filename']['tmp_name'], "videos/" . $filename);
                      }
  </code></pre>
  
  <p>The problem I am having is the video's are not being moved to my folder. I have done research on how to do this and have try many error solving methods but nothing is seeming to work so if you have any idea on what my problem is any help is appreciated.  The form works perfectly. Thanks....</p>
  
  <p>I have searched google and youtube and can't find any really good articles on this if you know any that would be awesome too. </p>
  
  <p>I tried to do troubleshooting by using this code..</p>
  
  <pre><code>if(move_uploaded_file($_FILES['filename']['tmp_name'], "videos/" . $filename)){
                                  echo "This worked Successfully";
  
                              }else{
                                  echo "Error";   
                              }
                      }
  </code></pre>
  
  <p>and it did not echo either statement....</p>