title: PHP - Show image name in choose file image
body: <p>I want when I go to update form to show the image name from database there were is write <code>"No file chosen"</code> or to auto-select the photo from the database. All the data from my database is loaded on the fields. Is that possible?</p>
  
  <p>Photo image to see what i mean: </p>
  
  <p><a href="https://i.stack.imgur.com/tP8Sc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tP8Sc.png" alt="enter image description here"></a></p>
  
  <p>HTML image form:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;b&gt;Poze&lt;/b&gt;
  &lt;font color="red"&gt;*&lt;/font&gt; 
  &lt;input type="file" name="image"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>PHP code for image:</p>
  
  <pre class="lang-php prettyprint-override"><code>$folder ="uploads/"; 
  $path = $folder . $image ; 
  $target_file=$folder.basename($_FILES["image"]["name"]); 
  $imageFileType=pathinfo($target_file,PATHINFO_EXTENSION);
  $allowed=array('jpeg','png' ,'jpg'); $filename=$_FILES['image']['name']; 
  $ext=pathinfo($filename, PATHINFO_EXTENSION); 
  if(!in_array($ext,$allowed) ) { 
      $errMsg = 'Se accepta doar imagini. Extensie: JPG, PNG, GIF.';
  }
  else{ 
      move_uploaded_file( $_FILES['image'] ['tmp_name'], $path);
  }
  </code></pre>