title: Yii, cant get the full path of the uploaded file
body: <p>In _form i have to upload some pictures and everything is working fine but what im missing is when i select my picture i want to view that picture on the page (before saving and while im inserting the data), so i was trying to get the full path of that picture in order to put it in an image src.</p>
  
  <p>What i already did is showing that picture on Edit but i want to view that picture on the create form.</p>
  
  <p>Here is some of my code.</p>
  
  <pre><code>&lt;div class="row"&gt;
          &lt;?php echo $form-&gt;labelEx($model, 'screenshot2'); ?&gt;
          &lt;?php
          if (!empty($model-&gt;app_name)){
              echo "&lt;img src='/apps/$model-&gt;app_name/$model-&gt;app_name" . "_2.jpg' 
                    width=100px height=80px style='float:left' /&gt;
                    &lt;div style='clear:both'&gt;&lt;/div&gt;";
          }
          ?&gt;
          &lt;?php echo $form-&gt;fileField($model, 'screenshot2');
  
          //i want to put the image here
          print_r($model-&gt;image);//This shows the picture name not the path
  
          ?&gt;
          &lt;?php echo $form-&gt;error($model, 'screenshot2'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any help with getting the path or another way to do it would be appreciated because i didnt find any. </p>