title: Saving file to server in Coldfusion, storing In CF temp directory instead of specified destination
body: <p>I'm using Coldfusion 8 on an Ubuntu Linux server with Apache and MySQL. Any file uploaded get stored in the Coldfusion temp directory:
  [/opt/coldfusion8/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/neotmp17260.tmp] I obviously want it to be stored in to /var/www/cfm3/images [which the value of #destination#. I have tried other solutions provided by this site but they tend to fork off to other solutions that have not solved my solution. Below is the an example of my code. </p>
  
  <pre><code>    &lt;cfset destination = expandPath("images") /&gt;
  &lt;cfif not directoryExists(destination)&gt;
      &lt;cfdirectory action="create" directory="#destination#"&gt;
  &lt;/cfif&gt;
  &lt;cfloop from="1" to="#num_users#" index="i"&gt;
      &lt;cfoutput&gt;User #i# Photo Upload : 
          &lt;cfif isDefined("#i#")&gt;
              &lt;cffile action="upload"
                      fileField="#i#"
                      accept="image/jpeg, image/gif, image/png" 
                      destination="#destination#"
                      nameConflict="makeUnique"
                      mode = 777&gt;
              &lt;cfdump var="#upload#"&gt;
              &lt;p&gt;Thank you, your file has been uploaded.&lt;/p&gt;
          &lt;/cfif&gt;
          &lt;input type="file" name="#i#" /&gt;&lt;br /&gt;
      &lt;/cfoutput&gt;
  &lt;/cfloop&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated. :D</p>