Results 1 to 3 of 3

Thread: Using CFFILE to delete files

  1. #1
    jsnowden3 Guest

    Default Using CFFILE to delete files

    I am attempting to use CFFILE to delete a file from a temporary upload folder - after I have completed processing.

    The syntax I am using is:

    <cffile action="DELETE" file="D:\home\mywebsite.com\uploads\images\#cffile .serverFile#">

    The results is:

    Security: The requested template has been denied access to D:\home\mywebsite.com\uploads\images\aaaaaa.jpg.
    The following is the internal exception message: access denied (java.io.FilePermission D:\home\mywebsite.com\uploads\images\aaaaaa.jpg delete)

    ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.

    The file exists, all process is complete successfully, it just appears that the webserver does not have permissions to delete files from that directory.

    How do I grant permissions to the webserver to delete those files?

  2. #2
    jsnowden3 Guest

    Default Answer from Hostek Support

    Yuo have to contact hostek support. They will enable this functionality...

  3. #3
    Join Date
    May 2009
    Location
    Tulsa, OK
    Posts
    220

    Default

    Update: For the past several months, this has been enabled automatically on all new accounts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •