title: Undefined index: file in line 12, 15, 16, 17, 18, 19, 20
body: <p>I get errors in this part to upload a file image into a folder an after that save in database, help me please</p>
  
  <pre><code>  11   $allowedExts = array("gif", "jpeg", "jpg", "png");
    12   $temp = explode(".", $_FILES["file"]["name"]);
    13   $extension = end($temp);
    14
    15   if ((($_FILES["file"]["type"] == "image/gif")
    16   || ($_FILES["file"]["type"] == "image/jpeg")
    17   || ($_FILES["file"]["type"] == "image/jpg")
    18   || ($_FILES["file"]["type"] == "image/pjpeg")
    19   || ($_FILES["file"]["type"] == "image/x-png")
    20   || ($_FILES["file"]["type"] == "image/png"))
         &amp;&amp; ($_FILES["file"]["size"] &lt; 100000)
         &amp;&amp; in_array($extension, $allowedExts)) {
         if ($_FILES["file"]["error"] &gt; 0) {
         echo "Return Code: " . $_FILES["file"]["error"] . "&lt;br&gt;";
        } else {
        if (file_exists("../img/propieties/" . $_FILES["file"]["name"])) {
          echo $_FILES["file"]["name"] . " already exists. ";
        } else {
          move_uploaded_file($_FILES["file"]["tmp_name"],
          "../img/propieties/" . $_FILES["file"]["name"]);
        }
        }
        } else {
         echo "Invalid file";
        }
  </code></pre>
  
  <p>I got a element input normal into a form with method POST</p>
  
  <pre><code>&lt;input type="file" name="file" id="file"&gt;
  </code></pre>