Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter nwbennett

    (@nwbennett)

    Not sure about the upload folder issue since I haven’t fiddled with that at all really.

    When I commented out the cleanup part I only commented what was within the curly brackets…basically leaving the function essentially empty of statements but still defined.

    function wpcf7_cleanup_upload_files() {
    /*
    EVERYTHING WITHIN THE FUNCTION
    */
    }

    I’ll definitely post what I discover if/when I upgrade to PHP5.

    Thread Starter nwbennett

    (@nwbennett)

    Thank you for the tip. I’ll try that out.

    The auto delete feature can be disabled by commenting out the contents of the wpcf7_cleanup_upload_files function in the contact-form-7/modules/file.php.

    Not sure about how to change the default upload location. There is a section in that same file that starts with the comment /* File uploading functions */ but I didn’t see anything that jumped out at me.

    Good luck and thanks for the PHP5 suggestion.

    Thread Starter nwbennett

    (@nwbennett)

    I’ve edited the plugin so that the htaccess file allows read access to the directory, commented out the portion of the php file that removes the files after upload, and added the [FileUpload] as a direct link in the body of the email message.

    This is working and allows the recipient to download the file from the server but I would rather have the attachment feature working properly so that I don’t have to manually clean up the upload directory and so that the recipient has a copy of the attachment in their email instead of on my server.

    Suggestions are quite welcome.

Viewing 3 replies - 1 through 3 (of 3 total)