title: Is it possible to show a image that is in a tmp folder before upload?
body: <p>I want to show the user a image before the user uploads it to the server to make sure that this image is what the user wanted to upload.</p>
  
  <p>I have tryed to do this with <code>$_FILES['name']['tmp_name']</code> and put this in a  tag but nothing happens.</p>
  
  <pre><code> &lt;form action='' method='POST'  enctype="multipart/form-data"&gt;
          &lt;header class='pageHeading'&gt;Kop afbeedling toevoegen&lt;/header&gt;            
          &lt;section class='body'&gt;               
              &lt;div class='inputFrame'&gt;  
  
  
                  &lt;img src="&lt;?php if(isset($_FILES['image']['tmp_name'])){echo $_FILES['image']['name'];}?&gt;"/&gt;
  
                          &lt;div class='input'&gt;
                              &lt;div class="cellFrame"&gt;
                                  &lt;div class="inputHeading"&gt;Afbeelding uploaden&lt;/div&gt;
                                  &lt;div class="frame"&gt;
                                      &lt;div class="frameAlign"&gt;
                                          &lt;div class="displayFlie"&gt;
                                              &lt;input type='file' name='image'/&gt;
                                          &lt;/div&gt;
                                          &lt;button name='upload' class='btnUpload btn'&gt;Upload&lt;/button&gt;
                                          &lt;div class="clr"&gt;&lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
  
  
                  &lt;div class="clr"&gt;&lt;/div&gt;   
              &lt;/div&gt;
           &lt;/form&gt;
  </code></pre>