title: Yii , saving an image from $_FILES , but without using models
body: <p>Is this possible ?
  This is with a model</p>
  
  <pre><code>  CUploadedFile::getInstance($model,'newsimage');
    $model-&gt;image-&gt;saveAs("image\path")
  </code></pre>
  
  <p>but I don't want to create a model just so i can save my image.</p>
  
  <p>What I actualy need this for is ... well I am trying to make the "Upload image" function of CKEditor to work,  but I need a script for the image saving.
  When I click the "Upload image" button i just call an action and from there I have access to the picture I have selected, using <code>$_FILES</code>, but I can't seem to save the file to a target directory.</p>
  
  <p>Is it possible to save the file to a target path ("C:\myProject\images" for example) and not use a model ?</p>
  
  <p>EDIT : </p>
  
  <p>Here is a solution i found a little bit later
  The file i upload is in <code>$_FILES['upload']</code> so ..</p>
  
  <pre><code>$temp = CUploadedFile::getInstanceByName("upload");  // gets me the file into this variable (  i gues this wont work for multiple files at the same time )
  $temp-&gt;saveAs("D:/games/" . $temp-&gt;name);  // full name , including the filename too.
  </code></pre>