title: Issues with Php Music File Uploader
body: <p>So I'm trying to upload music files with php but the files aren't going to the folder, here's my code what are my mistakes and what am i missing</p>
  
  <pre><code>        &lt;form action="" method="post" enctype="multipart/form-data"&gt;
      &lt;input type="file" name="file"/&gt;
      &lt;input type="text" placeholder="File Name" name="file_name"&gt;
      &lt;input type="text" placeholder="Artist Name" name="artist_name"&gt;
      &lt;textarea rows="5" placeholder="Description" name="description"&gt;&lt;/textarea&gt;
      &lt;input type="submit" class="btn btn-warning bgcolor" name="submit" value="Upload"/&gt;
      &lt;/form&gt;
  
      &lt;?php
      if(isset($_POST['submit'])){            
      function GetMusicExtension($musictype)
           {
             if(empty($musictype)) return false;
             switch($musictype){
                 case 'audio/mp3': return '.mp3';
                 default: return false;
             }
          }
  
          if (!empty($_FILES["file"]["name"])) {
  
              $file_name=$_FILES["file"]["name"];
              $temp_name=$_FILES["file"]["tmp_name"];
              $music_type=$_FILES["file"]["type"];
              $size = $_FILES['file']['size'];
              $ext= GetMusicExtension($music_type);
              $musicname = $_POST['file_name'].$ext;              
              $target_path = "music/".$musicname;
  
  
          if(move_uploaded_file($temp_name, $target_path)) {                              
              $query = "insert into music(name,artist,description) 
              values('".$musicname."','".$_POST['artist_name']."','".$_POST['description']."')";              
              mysqli_query($link,$query) or die("error in $query == ----&gt; ".mysqli_error($link));                                                 
              }   
          }else{
  
             exit('&lt;script&gt;alert("Error Saving Data... try again");&lt;/script&gt;');
          }
      }                   
      ?&gt;
  </code></pre>
  
  <p>PS: If i change the mime to an image mime and try uploading it uploads</p>
  
  <p><strong>UPDATE:</strong>
  If i change post_max_size and upload_max_size it works. Thanks all.</p>