title: Uploading audio files in php not saved in designated folder?
body: <p>This is my form.php</p>
  
  <pre><code>      &lt;form name="form" action="upload.php" method="post" enctype="multipart/form-data"&gt;
                  &lt;?php $id=$_REQUEST['id1']; ?&gt;
          &lt;label&gt;Category: &lt;/label&gt;&lt;?php echo
          '&lt;input type="text" name="category" onfocus="blur()" value='.$id.'&gt;'?&gt;&lt;/br&gt;
              &lt;label&gt;Name:&lt;/label&gt;
              &lt;input type="text" name="name" size="32"&gt;&lt;/br&gt;&lt;/br&gt;
              &lt;label&gt;Type:&lt;/label&gt;
              &lt;select name="type"&gt;
                  &lt;option value="Audio"&gt;Audio&lt;/option&gt;
                  &lt;option value="Video"&gt;Video&lt;/option&gt;
                  &lt;option value="Read"&gt;Read&lt;/option&gt;
                  &lt;option value="Quiz"&gt;Quiz&lt;/option&gt;
              &lt;/select&gt;
              &lt;label&gt;Description:&lt;/label&gt;&lt;/br&gt;
              &lt;textarea rows="10" cols="30" name="description"&gt;&lt;/textarea&gt;&lt;/br&gt;                  &lt;/br&gt;
              &lt;label&gt;File:&lt;/label&gt;
              &lt;input type="file" name="files"/&gt;&lt;/br&gt;
              &lt;input type="submit" value="upload" name="up"&gt;
          &lt;/form&gt;
  </code></pre>
  
  <p>and my upload.php
          
  
  <pre><code>        include("connect.php");
  
  
          if(isset($_REQUEST['up']))
          {
          $nagan=$_FILES['files']['name'];    
          $tmp_loc=$_FILES['files']['tmp_name'];
  
           echo $nagan;
           echo $tmp_loc;
              $bookCover="modules/".$nagan;
  
              move_uploaded_file($tmp_loc,$bookCover);
  
              $sql="INSERT INTO modules (name, type, description, filename, category)VALUES('$_POST[name]','$_POST[type]','$_POST[description]','$bookCover','$_POST[category]')";
  
             mysql_query($sql);
  
      $count=mysql_affected_rows();
  
      if($count==1)
      {
  
        echo "File $nagan Successfully Uploaded!";
  
      }else
        echo "Error!";
  
  
        }
  
      ?&gt;
  </code></pre>
  
  <p>Uploading images and pdf files work fine but when i try to upload audio files it does not show in the designated folder (modules folder) but it saves a value in the database. Also, when i try to upload a video file the upload.php does not work at all. Please help me. I am trying to figure this out for two days now. help.</p>