For some reason, cffile will not work for me. I have the
following form to submit a file:
<form name="form" method="post" action="uploadFormBk.cfm"
encytype="multipart/form-data">
Location: <input type="file" name="resourceURL">
<input type="submit" name="Submit" value="Submit">
</form>
And the action page:
<cfif IsDefined("Form.resourceURL") AND Form.resourceURL
NEQ "">
<cfset uploadPath =
GetDirectoryFromPath(GetTemplatePath())>
<cffile action="upload" fileField="#Form.resourceURL#"
destination="#uploadPath#" nameConflict="overwrite"
accept="application/pdf">
</cfif>
The error I get is: CFFILE action="upload" requires forms to
use enctype="multipart/form-data".
That's what I set the form to!