Support » Plugin: Contact Form 7 » Attached files not sending: temp cleanup too quick

  • Resolved Andy Macaulay-Brook


    Hi, I have an issue with attachments sometimes not sending because the temp file cleanup routine runs before the form is submitted.

    The timeout is 60 seconds and is hard-coded into function wpcf7_cleanup_upload_files.

    I’ve fixed the issue on the site temporarily by removing this function from the template_redirect hook.

    Would it be possible to add a filter to the plugin for this value, so that site developers/maintainers can customise it?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi


    See File Uploading and Attachment

    The function has nothing to do with your issue.

    I’m using multiple drag and drop file uploader extension plugin. It uploads the files to that directory.

    Should the plugin author be moving the files from there to another directory so that they aren’t deleted by the clean up routine?

    If so, I’ll get him to fix.


    Plugin Author Takayuki Miyoshi


    I think so. I don’t know what extension plugin you use, but the author would appreciate your feedback.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.