File upload error - did not contain file


i the error below on uploading file.

the form field "c:\cfusionmx7\runtime\servers\coldfusion\server-inf\temp\wwwroot-tmp\neotmp3266.tmp" did not contain file.

 

find below source code

 

-- environment details

cf7

 

-- upload form

<form action="doupload.cfm" method="post" id="frmupload" name="frmupload" enctype="multipart/form-data">
<table width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <td class="normaltxt" colspan="2"> csv file path:</td>
    </tr>
    <tr>
        <td align="left"><input type="file" name="sfilepath" id="sfilepath" accept="csv" size="20"/></td>
        <td><input type="submit" value="upload"></td>
    </tr>
    <tr><td id="uploaderror" colspan="2"> </td></tr>
</table>
</form>   
</table>

 

 

--doupload.cfm

<cffile action="upload" filefield="#form.sfilepath#" destination="c:\" nameconflict="overwrite" result="upload">

 

does know why.

the filefield value should string, not variable. try changing filefield attribute of cffile filefield="sfilepath".

 

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?cont ext=coldfusion_documentation&file=00000253.htm#3540091

 

you should verify cf service has sufficient rights create files in destination directory.



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい