Forums

Contact Form 7
My temp folders are not empty (5 posts)

  1. rwilki
    Member
    Posted 7 months ago #

    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?

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Posted 7 months ago #

    The temporary files are removed automatically. If not on your site, check the permission of the folder.

  3. rwilki
    Member
    Posted 7 months ago #

    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...

  4. rwilki
    Member
    Posted 7 months ago #

    for that matter, I'm having the same issues with file uploads as well...

  5. Takayuki Miyoshi
    Member
    Posted 7 months ago #

    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().

Reply

You must log in to post.

About this Plugin

About this Topic