• Resolved cemruniversal

    (@cemruniversal)


    Hi Goodmorning/ afternoon/ night

    I made a form, and I want people to be able to upload files, but when i try to put this code [your-file] in the mail section, it doesn’t work.

    I have read all the documentation regarding this topic, I have watched youtube videos, and still nothing is working.

    The mistake here is not mine, because I have done everyhting right.

    The mistake is that the plugin made an update, and that update doesnt let me put that tag in the mail section.

    How do I know it was an update mistake? Because I have this same plugin on another site (but not updated) and it sends the file perfectly, works really fine.

    So please, could you update the plugin and fix the issue? Thanks

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

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

    (@takayukister)

    Thread Starter cemruniversal

    (@cemruniversal)

    Thanks for providing the link, I have read it more than 5 times and still, I am doing it exactly how it says but I still get this error (! 1 configuration error detected)

    Funny thing is, I accidentaly wrote an email tag wrong, I put [your-file] and I didnt get any errors, but then I realized that the email tag had a typo, so I wrote [your-files] (which is the correct tag) and then the error appeared again.

    To me the same thing happens to me

    Hello @cemruniversal and @muradenyo,

    Uploading files with forms has always been a challenge. You have to deal with upload limits, storage space taken up by files, cleaning routines, etc. CF7 offers the standard functionality that allows you to receive files in your mail, but does not store the files on your server.

    When working with file fields in Contact Form 7, I like to use the Drag and Drop Multiple File Upload plugin extension.

    This plugin allows you to add a custom number of files per field. In addition, you can choose to store the files temporarily on your site and access them through a link, rather than attaching them directly by mail, which is the default behavior (and it is usually very limiting when you expect files larger than 20 MB).

    What you should know is that this option deletes the files after 60 min. To disable this, you should add a code snippet to the functions.php file of your current theme or to a custom plugin:

    // DRAG AND DROP MULTIPLE FILE UPLOAD
    // Disables file deletion of form entries
    function dnd_remove_action_auto_delete_files() {
      remove_action( 'template_redirect', 'dnd_cf7_auto_clean_dir' );
    }
    add_action('plugins_loaded','dnd_remove_action_auto_delete_files');

    Although this plugin has a premium (paid) version, I have never used it. The free version should be more than enough for most cases.

    Best regards,
    Yordan.

    Thanks

    Thread Starter cemruniversal

    (@cemruniversal)

    Guys, Thankyou for all the advise, I resolved the issue,

    The problem was that the file size limit I put was too big. Later I found out that the limit was 25mb, so I lowered it down to 25 and it worked perfectly.

    Thanks a lot for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Attaching Files in Mail Not Working’ is closed to new replies.