title: Mime type not working
body: <p>I have searched mime types for zip,apk files but they are not working for me (gives error -invalid format as per my code written.) . I have following code with me , other mime types of allowed extensions are working perfectly.Whats going wrong for me in below code ?</p>
  
  <pre><code>$USER = $_COOKIE['phne'];
  include 'config.php';
  
  $sqli="SELECT * FROM `table*` WHERE EMAIL='$USER'";
  
  $permquery=mysql_query($sqli);
  
  $rows[35]=mysql_fetch_assoc($permquery);
  echo '&lt;a href="#"&gt;&lt;img src="imagelogo*"&gt;&lt;/a&gt;&lt;br&gt;';
  $allowedExts = array("gif", "jpeg", "jpg", "png" , "3gp" , "mp3" , "mp4", "apk", "zip"); 
  $extension = end(explode(".", $_FILES["file"]["name"]));
  if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == 
  
  "image/jpeg") || ($_FILES["file"]["type"] == "image/jpg") || ($_FILES["file"]["type"] == 
  
  "image/pjpeg") || ($_FILES["file"]["type"] == "image/x-png") || ($_FILES["file"]
  
  ["type"] == "image/png") || ($_FILES["file"]["type"] == "video/3gpp") || ($_FILES
  
  ["file"]["type"] == "audio/mpeg") || ($_FILES["file"]["type"] == "video/mp4") || 
  
  ($_FILES["file"]["type"] == "application/vnd.android.package-archive") || ($_FILES
  
   ["file"]["type"] == "'application/x-zip-compressed' , 'application/octet-stream' , 
  
   'multipart/x-zip', 'application/x-compressed'") ) &amp;&amp; ($_FILES["file"]["size"] &lt; 
  
    1500000) &amp;&amp; in_array($extension, $allowedExts)) 
    {
    if ($_FILES["file"]["error"] &gt; 0)
  { echo "Return Code: &lt;a&gt;&lt;b&gt;" . $_FILES["file"]["error"] . "&lt;/a&gt;&lt;/b&gt;&lt;br&gt;"; }
  else 
      {
   echo " &lt;h1&gt;Your Upload Status&lt;/h1&gt;&lt;br&gt;";
  echo " Dear, "; 
   echo "&lt;a&gt;&lt;b&gt;"; 
  echo $rows[35][FNAME]." ".$rows[35][LNAME];
  echo "&lt;/b&gt;&lt;/a&gt;";
  echo " Your Uploaded file is : &lt;a&gt;&lt;b&gt;" . $_FILES["file"]["name"] . "&lt;/a&gt;&lt;/b&gt;&lt;br&gt;";
  echo "Uploded file Format is: &lt;a&gt;&lt;b&gt;" . $_FILES["file"]["type"] . "&lt;/a&gt;&lt;/b&gt;&lt;br&gt;";
  echo "Your file Size is: ";
  echo "&lt;a&gt;&lt;b&gt;"; 
   echo ($_FILES["file"]["size"] / 1024) ; 
    echo " KB &lt;br&gt;&lt;/a&gt;&lt;/b&gt;";  
    echo "&lt;br&gt;";
   echo "Your Email connected is ";
   echo "&lt;a&gt;&lt;b&gt;";
  echo $USER ;
  echo "&lt;/a&gt;&lt;/b&gt;&lt;br&gt;";
  
   if (file_exists("location*/" . $USER . "/" . $_FILES["file"]["name"])) 
   {  echo " &lt;h1&gt;Final Status&lt;/h1&gt;&lt;br&gt;&lt;b&gt;Sorry Upload failed.&lt;/b&gt;&lt;br&gt;&lt;a&gt;&lt;b&gt;File 
  
      already exists,Use different name .&lt;/b&gt;&lt;/a&gt;"; 
       exit(); 
    } 
       else 
        {  move_uploaded_file($_FILES["file"]["tmp_name"], "location*/" . $USER . "/" . 
  
    $_FILES["file"]["name"]);  echo "&lt;h1&gt;Final Status&lt;/h1&gt;&lt;br&gt;&lt;b&gt;Successfully Stored 
  
      to Kelkars.com :&lt;/b&gt;&lt;br&gt; " . "Your Successfully Uploaded File-"; 
       echo "&lt;a&gt;&lt;b&gt;"; 
        echo $_FILES["file"]["name"];
         exit();
             } 
       }
     } 
        else { echo "&lt;a&gt;Invalid file-Sorry,This file Format not supported&lt;/a&gt;";  
    exit();
      } 
  </code></pre>
  
  <p>Any help would be Thank full.</p>