I am trying to let a user upload excel spreadsheets to a different directory that is located on our webserver.
I have tried many paths but it always comes back withe same error. pls see cod
<form action="upLoadFileAction2.cfm"
enctype="multipart/form-data"
method="post">
<p>Enter the complete path and filename of the file to upload:
<input type="file"
name="datafile"
size="125">
</p>
<input type="submit"
value="Upload">
</form>
--------------------------------------------------------------------- ---------------------------------------------------------------------- --
<cffile action="upload"
destination="S:\LibraryData\FORMS\PROSPECTUS_and_WORKSHEET\NEWkshts/"
nameConflict="overwrite"
fileField="dataFifle" >
<cfoutput>
You uploaded #cffile.ClientFileName#.#cffile.ClientFileExt#
successfully to #cffile.ServerDirectory#.
</cfoutput>
I changed the forward slash but I am still getting: The form field dataFifle did not contain a file error as seen below.
The form field dataFifle did not contain a file. | |||||
| The error occurred in C:/Webroot/Crabweb1a/Administration/FormsAdmin/upLoadFileAction2.cfm: line 13 | |||||
| |||||
North America
Europe, Middle East and Africa
Asia Pacific