Answered
CFImage bug?
I'm having a problem with CFImage where it seems to be
locking the image file it is using, making it unable to be deleted
(even in windows file explorer).
Here is the scenario:
I upload an image file using cffile action=upload
I read the file in using cfimage
I resize the file (using imageResize()) and write it to disk using CFImage action="write" with a new file name.
I then try to delete the original uploaded file, and get an error:
ColdFusion could not delete the file d:\inetpub\wwwroot\site\cfml\images\listingimages\1998\000_0202.jpg for an unknown reason.
The reason appears to be that ColdFusion had locked the file. It only seems to happen with files over 300K in size.
I've tried everything I can think of to delete the file. Some have stayed locked and unable to delete until I restart the CF services.
I'm running CF8.0.1 on Win2003 server. Thanks for any help you can give.
Here is the scenario:
I upload an image file using cffile action=upload
I read the file in using cfimage
I resize the file (using imageResize()) and write it to disk using CFImage action="write" with a new file name.
I then try to delete the original uploaded file, and get an error:
ColdFusion could not delete the file d:\inetpub\wwwroot\site\cfml\images\listingimages\1998\000_0202.jpg for an unknown reason.
The reason appears to be that ColdFusion had locked the file. It only seems to happen with files over 300K in size.
I've tried everything I can think of to delete the file. Some have stayed locked and unable to delete until I restart the CF services.
I'm running CF8.0.1 on Win2003 server. Thanks for any help you can give.