File upload error - did not contain file
I get the the error below on uploading a file.
The form field "C:\CFusionMX7\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\neotmp3266.tmp" did not contain a 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 anyone know why.
