title: Saving file to server in ColdFusion
body: <p>After doing some research I feel this should work, however it is not saving the file to my Images directory.</p>
  
  <pre><code>    &lt;cfform name="uploadImgForm" method="post" action="#CGI.PATH_INFO#?#CGI.QUERY_STRING#" enctype="multipart/form-data"&gt;
      &lt;input name="txtImg" type="file" /&gt;
      &lt;input name="btnSubmit" type="submit" /&gt;
  &lt;/cfform&gt;
  &lt;cfif isDefined("Form.txtImg")&gt;
      &lt;cffile action="upload"
          fileField = "txtImg"
          destination="/Images"
          accept="image/jpeg"
          nameconflict="makeunique"&gt;
  &lt;/cfif&gt;
  </code></pre>
  
  <p>I plan on doing some validation, but I would like to get this simple example working first.</p>
  
  <p>I came across this later which is helpful when trying to rename a file before upload:
  <a href="http://blogs.adobe.com/cantrell/archives/2004/07/renaming_files.html" rel="nofollow">Adobe link</a></p>