Re: deleting an image after using cfimage

2014-08-21 Thread te...@it-werks.com te...@it-werks.com
no, you have to wait until cf has finished with the file, if you are trying to delete immediately afterwards then that is probably why. You should either try adding a delay, or simply add the images to a list and setup a scheduled task that comes and deletes the files in that list later on. On

RE: deleting an image after using cfimage

2014-08-21 Thread UXB
How can I program it to unlock as soon as it has been re sized or cropped? It depends on what is locking it. As a test maybe have CF immediately resize another test image after re-sizing the target image and then see if you can delete the target image. Dennis Powers UXB Internet - A website

Re: deleting an image after using cfimage

2014-08-21 Thread Byron Mann
Just to add a bit. This is not limited to just CFimage. CF file functions and tags exhibit the same behavior. Although, in my experience has been better with version 9+. Seems like CF is a bit asynchronous with writing files. So a file write, immediately followed by another file action like

Re: deleting an image after using cfimage

2014-08-20 Thread te...@it-werks.com te...@it-werks.com
the file is probably still locked. how long have you waited before trying to delete it ? On Tue, Aug 19, 2014 at 10:57 PM, te...@it-werks.com te...@it-werks.com te...@it-werks.com wrote: Cannot delete an image after using cfimage unless I stop and restart the Coldfusion Application server.

Re: deleting an image after using cfimage

2014-08-20 Thread Russ Michaels
no, you have to wait until cf has finished with the file, if you are trying to delete immediately afterwards then that is probably why. You should either try adding a delay, or simply add the images to a list and setup a scheduled task that comes and deletes the files in that list later on. On

deleting an image after using cfimage

2014-08-19 Thread te...@it-werks.com te...@it-werks.com
Cannot delete an image after using cfimage unless I stop and restart the Coldfusion Application server. Is there a setting I am missing? ~| Order the Adobe Coldfusion Anthology now!

Re: deleting an image after using cfimage

2014-08-19 Thread Russ Michaels
the file is probably still locked. how long have you waited before trying to delete it ? On Tue, Aug 19, 2014 at 10:57 PM, te...@it-werks.com te...@it-werks.com te...@it-werks.com wrote: Cannot delete an image after using cfimage unless I stop and restart the Coldfusion Application server.