1 Reply Latest reply on May 15, 2006 1:08 PM by DJ_Jamba

    CFFILE Errors

      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">

      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">

      The error I get is: CFFILE action="upload" requires forms to use enctype="multipart/form-data".

      That's what I set the form to!