title: Give specific name for uploadable files
body: <p>I have this code, to upload multiple files.</p>
  
  <p>I would like to add a custom name for each file, beacuse i will store them in sql like this:</p>
  
  <p>filename-1-2017-05-02-12:30:00 (1 is the actual array index, and after a date time)</p>
  
  <pre><code>    if(isset($_POST['submitButton']))
  {
      if(isset($_FILES['gallery']))
      {
          if($_FILES["gallery"]["size"] &gt; 0 )
          {
              foreach($_FILES['gallery']["name"] AS $key=&gt;$file)
              {
                  if($_FILES['gallery']['size'][$key]  != 0 )
                  {
                      $target_path = "../documents/";
                      $target_path = $target_path . $_FILES['gallery']['name'][$key];
  
                      printr($_FILES['gallery']);
                      die();
  
                      if(move_uploaded_file($_FILES['gallery']['tmp_name'][$key], $target_path))
                      {
                          //$file_name = basename($_FILES['dok_file']['name']);
                          header("Location: ".$host."/".$admin_folder."/feltoltott-fajlok.php?new=1");
                      }
                      else
                      {
                          $error[] = "A fájl feltöltése nem sikerült, próbálja újra.";
                      }
                  }
              }
          }
      }
  }
  </code></pre>