The temporary files are removed automatically. If not on your site, check the permission of the folder.
Thread Starter
rwilki
(@rwilki)
That might be Takayuki and thank you for your reply. But the really-simple-captcha.php file is looking to this folder as the temp folder $this->tmp_dir = dirname( __FILE__ ) . '/tmp/'
but my form plugin is using this folder as the temp folder
wpcf7_captcha
Maybe your script somewhere tells “wpcf7_captcha” to be the temporary folder and I do have permissions problems. If this is so, why does the cleanup script point to the “tmp” directory?
function cleanup( $minutes = 60 ) {
$dir = trailingslashit( $this->tmp_dir );
Thanks…
Thread Starter
rwilki
(@rwilki)
for that matter, I’m having the same issues with file uploads as well…
The tmp_dir
property is usually overwritten by another plugin using CAPTCHA. As for Contact Form 7, in its modules/captcha.php, you can find this line:
$captcha->tmp_dir = trailingslashit( wpcf7_captcha_tmp_dir() );
Also there is a function wpcf7_cleanup_captcha_files()
defined there, it calls $captcha->cleanup().