• Resolved arafat1023

    (@arafat1023)


    I am using the the free version of this plugin.I have given max file size 5 mb and only 4 file can be uploaded.All the images gets saved in Wp-contents/uploads/wp_dndcf7_uploads/wpcf7-files this location. But after 1 or 2 hour file gets automatically deleted.I cant find any of the image user uploaded.how can i avoid this?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @arafat1023 ,

    Files being deleted 1 hours after being sent to save more space from your server. It’s a default behavior of contact form 7.

    But there’s an option if you don’t want to delete the files.
    Go to Contact Form 7 -> Drag & Drop Settings then check “Send attachment as links” option.

    Second option is to add this to your theme inside functions.php
    ———————————————————————————-

    add_action(‘plugins_loaded’,’remove_action_auto_delete_files’);

    function remove_action_auto_delete_files() {
    remove_action( ‘template_redirect’, ‘dnd_cf7_auto_clean_dir’ );
    }

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hi @arafat1023 ,

    Please let me know if that works, so we can close this thread.

    Glen.

    Hello,

    I added the code in the function file of my child theme

    It does not work on my side the files have been removed anyway
    Thank you for your help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘file gets deleted automatically’ is closed to new replies.