• Resolved julianjanjan

    (@julianjanjan)


    Hey,

    I would like to keep the autodelete function for uploaded files, but give the mail recipients more time than 1 hour to download them.

    In previous support threads, I found this code and added it as PHP via the “code snippets” plugin:

    add_filter('dnd_cf7_auto_delete_files', 'cf7_adjust_auto_file_deletion');
    function cf7_adjust_auto_file_deletion( $time ){
    $time = 300;
    return $time;
    }

    But it doesn’t seem to work. I set “$time = 300;” to test if the files would disappear after 300 seconds / 5 minutes, but nothing happened.

    Did something change in the meantime? Is there another code to use now?

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

    (@glenwpcoder)

    Hi @julianjanjan,

    The code above is correct and still working. May I know which snippet plugin you are using? Make sure it’s activated, and the settings run in the front-end or everywhere.

    Also, in “Contact -> Drag & Drop Upload” uncheck “Send Attachment as links? and “Don’t delete files” options.

    The auto-delete feature will work on the front-end, so please refresh every 5 minutes.

    Please let me know.

    Glen

Viewing 1 replies (of 1 total)
  • The topic ‘How to change the autodelete time?’ is closed to new replies.