не получается желаемое действие загрузки

Я использую CF-8, windows-XP и IE 5.5.

Я использую простой тег, а именно, но получаю чистый gibberih вместе с текстом файла (текстовый документ)

upld. cfm

   <cffile action="read" file="C:\ColdFusion8\wwwroot\Proj\updl\fileDisk\SOL.doc" variable="fileDisk"   >
          <cfoutput>#fileDisk#
         </cfoutput>

<cfoutput>
<form  name="upload" method="post" action="actionUpld.cfm?form_Num=#form_Num#" enctype="multipart/form-data">

<input name="uplForm" id="uplForm" type="file" >
<input type="submit" name="submitUpld" value="Save" onclick="" >

</form>
</cfoutput>

actionUpld.cfm

<cftry>
<cfscript>         
             newUPL = CreateCFC('cfcs.projDB');     
             newUPL.Implementation_Num =    url.form_Num;
             newUPL.uplForm = form.uplForm;
             newUPL.putUPL();        
</cfscript>
 <cfcatch type="any" >
        <cfoutput >
            <hr>
             <h4>Other Error: #cfcatch.Type#</h4>
                <li><b>Message:</b> #cfcatch.Message#
                <li><b>Detail:</b> #cfcatch.Detail#
                <li><b>Error Code:</b> #cfcatch.ErrorCode#
           </cfoutput>
       </cfcatch>
</cftry>
<cflocation url="upld.cfm??form_Num=#form_Num#" >

Как лучше всего использовать cffile для вывода файла?

Также, когда я смотрю в базу данных, я получаю имя файла как

"C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\qeq344.tmp"
How to correct it?

Есть ли лучший способ.

]
1
задан Fransis 20 October 2010 в 13:31
поделиться