I am trying to upload a file. But i am getting an error, it is not detecting the input file field parameter.
Any Help?
Here is my code.
first page
<form name="frmupload" action="upload.cfm" mehod="post">
<input type="File" name="testfile" value="browse">
<input type="Submit" name="submit" value="submit">
</form>
and in the upload.cfm
<cffile action="UPLOAD"
destination="d:\webshare\test\ramesht\test\test.exe"
nameconflict="MAKEUNIQUE"
filefield="testfile">
I am getting this error:
Error in CFFILE tag
The form field specified in the CFFILE tag (TESTFILE) does not contain an uploaded file. Please be sure that you have specified the correct form field name.
The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (14:1) to (17:28).
Any Help?
Here is my code.
first page
<form name="frmupload" action="upload.cfm" mehod="post">
<input type="File" name="testfile" value="browse">
<input type="Submit" name="submit" value="submit">
</form>
and in the upload.cfm
<cffile action="UPLOAD"
destination="d:\webshare\test\ramesht\test\test.exe"
nameconflict="MAKEUNIQUE"
filefield="testfile">
I am getting this error:
Error in CFFILE tag
The form field specified in the CFFILE tag (TESTFILE) does not contain an uploaded file. Please be sure that you have specified the correct form field name.
The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (14:1) to (17:28).