Creative Juices Bo. Co.

Satisfy Your Thirst For Something Refreshing!

ColdFusion: Unable to create temporary file

GetTempDirectory Needs To be Added To Your SandBox Security

Over the past few weeks I have been seeing a nice little error message coming from a few of my customers shared hosting sites. It seems to happen whenever I am using CFIMAGE to read or resize an image. I did a little digging on Google and came across a nice thread discussing the problem. I'm posting it here so I have easy access to it, but you might find a need for it as well.

"If you are using Sandbox Security you'll need to add the value of the GetTempDirectory function to your Sandbox with read and write permissions and it will start working again."

I'll keep you updated on the response from the ISP.