I want to be able to upload a file that the user chooses. This is the code I have used:
<CFFORM action="added.cfm" method="post" name="Archive">
<input type="file" name="path">
<CFFILE action="upload" filefield="path" destination="C:\Inetpub\wwwroot\CFDOCS\Project2\files\" nameconflict="overwrite">
<input type="submit" value="Archive File">
All on the same page. However, I get the error:
Error Occurred While Processing Request
Error Diagnostic Information
The form field specified in the CFILE tag(PTAH) does not contain an uploaded file. Please be sure that you have specified the correct field name.
The erroro occured while processing an element with a general identifier of (CFFILE), occupying the document position (91:7) ti (91:128).
What am I doing wrong?
PS I am willing to change the point value, it just seems as though this should be a really easy question.
Schlumberger Acquisitions Systems Intern