title: <cffile action="Read"> not getting the desired up-load loaction
body: <p>I am using CF-8,windows-XP and IE 5.5.</p>
  
  <p>I am using simple tag namely . but the output i am getting is pure gibberih along witht the text of the file(word document)</p>
  
  <p>upld.cfm</p>
  
  <pre><code>   &lt;cffile action="read" file="C:\ColdFusion8\wwwroot\Proj\updl\fileDisk\SOL.doc" variable="fileDisk"   &gt;
            &lt;cfoutput&gt;#fileDisk#
           &lt;/cfoutput&gt;
  
  &lt;cfoutput&gt;
  &lt;form  name="upload" method="post" action="actionUpld.cfm?form_Num=#form_Num#" enctype="multipart/form-data"&gt;
  
  &lt;input name="uplForm" id="uplForm" type="file" &gt;
  &lt;input type="submit" name="submitUpld" value="Save" onclick="" &gt;
  
  &lt;/form&gt;
  &lt;/cfoutput&gt;
  </code></pre>
  
  <p>actionUpld.cfm</p>
  
  <pre><code>&lt;cftry&gt;
  &lt;cfscript&gt;         
               newUPL = CreateCFC('cfcs.projDB');     
               newUPL.Implementation_Num =    url.form_Num;
               newUPL.uplForm = form.uplForm;
               newUPL.putUPL();        
  &lt;/cfscript&gt;
   &lt;cfcatch type="any" &gt;
          &lt;cfoutput &gt;
              &lt;hr&gt;
               &lt;h4&gt;Other Error: #cfcatch.Type#&lt;/h4&gt;
                  &lt;li&gt;&lt;b&gt;Message:&lt;/b&gt; #cfcatch.Message#
                  &lt;li&gt;&lt;b&gt;Detail:&lt;/b&gt; #cfcatch.Detail#
                  &lt;li&gt;&lt;b&gt;Error Code:&lt;/b&gt; #cfcatch.ErrorCode#
             &lt;/cfoutput&gt;
         &lt;/cfcatch&gt;
  &lt;/cftry&gt;
  &lt;cflocation url="upld.cfm??form_Num=#form_Num#" &gt;
  </code></pre>
  
  <p>How best to use the cffile to output the file ?</p>
  
  <p>Also when i look at the DB, i am getting the file name as </p>
  
  <pre><code>"C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\qeq344.tmp"
  How to correct it?
  </code></pre>
  
  <p>Is there any better way.</p>