Great plugin! My only complaint or problem is that the temporary folder for the file attachments and (I'm using simple captcha) the folder for captcha is not empty either. This will require manually purging on a regular basis. Are there any options?
Great plugin! My only complaint or problem is that the temporary folder for the file attachments and (I'm using simple captcha) the folder for captcha is not empty either. This will require manually purging on a regular basis. Are there any options?
The temporary files are removed automatically. If not on your site, check the permission of the folder.
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...
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().
You must log in to post.