CFFile Delete Problem

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Re: CFFile Delete Problem

    Is something else on the system touching the file? Is ColdFusion touching
    the file before you try to delete it?
    --
    Tom Jordahl
    Macromedia


    Tom Jordahl Guest

  2. Similar Questions and Discussions

    1. CFFILE Delete, by date
      Hello, A site that I built has been moved to a new host and now has a limited amount of disk storage space so I need to be able to delete .mp3...
    2. cffile delete
      :confused; It seems an easy issue but it just does not work. Here is the code: <cffile action="delete" file="d:\InetPub\wwwroot\test.xls"> ...
    3. cfmail and cffile=delete
      I have a problem with trying to send mail with the <cfmail> tag out to a list of emails. I upload attachments onto the server (users choose to...
    4. CFFILE MOVE and DELETE
      :confused; I'm using CFFILE to MOVE and DELETE file on a Windows server, Coldfusion is not installed on this server its a user's working server. ...
    5. CFFile won't delete files
      I have a list of articles in my knowledgebase some of which are totally web based and others are DOC or PDF files.... The admin is allowed to...
  3. #2

    Default Re: CFFile Delete Problem

    I'm having an similar problem. I have an isolated test case in which I upload
    a file by submitting a form to an action page. I then have a separate form on
    the same index page that allows me to select and delete files that I have
    uploaded.

    When I do this, I get an application error that says "Coldfusion was unable to
    delete the file [specific path] for an unknown reason"

    However, if I restart the Coldfusion application service and reexecute the
    page, the delete executes perfectly.

    This seems to indicate that CF is somehow "hanging on" to the file once it is
    uploaded.

    Any help would be greatly appreciated.

    Owen

    oeustice Guest

  4. #3

    Default Re: CFFile Delete Problem

    Owen,
    How's the chow in Baghdad?

    My prob was something other than the upload, I'm processing the image to generate a thumbnail and the processor is locking the original file.

    K
    SSgt P Guest

  5. #4

    Default Re: CFFile Delete Problem

    Chow's great. Tonight we had BBQ meatballs and a light salad. Followed by
    carrot cake ala mode. War is hell.

    I think that we're looking at the same problem. I set up a test page that just
    does upload and delete. The upload works fine, but the delete errors out.
    However, if I restart the CF Admin service it works like a champ.

    I followed the recommendation of another post and verified that the temp
    directory doesn't contain a reference to the file. You can check it using
    #GetTempDirectory()#.

    The temp dir is clean, but it still won' t release the file. I've tried it in
    6.1 and 7. Same problem. Very strange. I've used cffile delete in the past and
    haven't had this problem. I don't get it.

    Keep your head down Sarge.

    oeustice Guest

  6. #5

    Default Re: CFFile Delete Problem

    :disgust; Bad news. The error is not ColdFusion. It is related to the
    CFX_JImage tag. I can upload and delete files all day and night, but as soon as
    I process them with the java plugin, bingo.

    I'll see if I can figure out a work around. Otherwise, I'll go shopping for
    another tag.


    oeustice Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139