public function cleanUpAfterError()
    {
        foreach ($this->request->files as $file) {
            $cacheFile = $this->generateCacheFile($file);
            unlink($cacheFile);
        }
    }
public function cleanUpAfterError()
    {
        foreach ($this->request->files as $file) {
            $cacheFile = $this->generateCacheFile($file);
            unlink($cacheFile);
        }
    }
public function cleanUpAfterError ( ) { foreach ( $ this -> request -> files as $ file ) { $ cacheFile = $ this -> generateCacheFile ( $ file ) ; unlink ( $ cacheFile ) ; } }
If an exception is handled this function will fire and clean up any files
that have been cached as they have not properly compiled.
If an exception is handled this function will fire and clean up any files that have been cached as they have not properly compiled .