File upload error - did not contain file
i the error below on uploading file.
find below source code -- environment details cf7 -- upload form <form action="doupload.cfm" method="post" id="frmupload" name="frmupload" enctype="multipart/form-data"> the form field "c:\cfusionmx7\runtime\servers\coldfusion\server-inf\temp\wwwroot-tmp\neotmp3266.tmp" did not contain file.
<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".
you should verify cf service has sufficient rights create files in destination directory.
More discussions in ColdFusion
adobe
Comments
Post a Comment