Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ColdFusion could not delete the file

Guest
Jul 01, 2008 Jul 01, 2008
Good day all im getting this error. cant figure it out

"ColdFusion could not delete the file c:\ColdFusion8\wwwroot\Jewel\images\stock\203083.jpg for an unknown reason"

I tried installing the 801 update the patch using :

http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403622&sliceId=1
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1

However this does not seem to be working,... but the file is there...
Does anyone have a solution to this problem
4.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 01, 2008 Jul 01, 2008
Hi,

Please check and confirm that you have enough permissions over the folder (in where you are trying to perform the delete operation).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2008 Jul 01, 2008
i must have as when the machine starts up it will allow me to delete it the first time then upload the new image to overright the file.. then when i try it again if gives that error...

When i restart coldfusin service it will allow me to delete the file again.. its as if the file is getting locked by coldfusion
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 01, 2008 Jul 01, 2008
Hi,

It seems that CF is performing a read operation (uploading a newer image) as soon as you delete one..

So give enough time for CF to perform it's read operation.. One way to accomplish this putting the following statement before your delete code.

<cfset createObject("java", "java.lang.Thread").sleep(JavaCast("int", 5000))>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2008 Jul 01, 2008
Ok that did not work either so i tried removing the statement where it deletes the file.. and just rename the file

now i get error

The value of the attribute source, which is currently c:\ColdFusion8\wwwroot\Jewel\images\stock\Winter2.jpg, is invalid

has coldfusion 8 changed something with file's and images.. this coding worked perfectly under coldfusion mx7
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2008 Jul 01, 2008
Attached is my code.. perhaps im doing something stupid
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jul 01, 2008 Jul 01, 2008
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2008 Jul 01, 2008
I download a file called unlocker... it shows what process are locking what files under a directory... it say jrun.exe is locking the file...

This is still 10 min after i tried access the file.. so jrun.exe is not releasing the lock.. any ideas?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 01, 2008 Jul 01, 2008
LATEST
you sure you have all hotfixes installed? this was definitely fixed in
one of the recent ones...

also, i am no quiet sure about referencing [previous] cffile inside
another cffile tag:

<cffile action="rename"
source="#dirlocation#\images\stock\#CFfile.serverfile#"
destination="#dirlocation#\images\stock\#FORM.code#.jpg">

see if setting a RESULT attribute in your cffile action='upload' tag and
referencing that instead in your cffile action='rename' solves the
problem...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources