0 Replies Latest reply on May 3, 2006 11:03 AM by SJColtsFn

    CFFILE action="upload" generating error

      I am getting the following error when using CFFILE action="upload":

      Security: The requested template has been denied access to /resources/publications.
      The following is the internal exception message: access denied (java.io.FilePermission /resources/publications read)

      Here is my code (the form is set up with enctype="multipart/form-data")

      <cfif PDFFileName NEQ "">
      <cffile action="UPLOAD" filefield="Form.PDFFileName" destination="#PubDestinationPath#"
      nameconflict="MAKEUNIQUE" attributes="ReadOnly" accept="application/pdf" mode="777">
      <cfset #Form.PDFFileName# = #cffile.clientFile#>

      PubDestinationPath = "/resources/publications/"

      What is causing the error?