We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11098
    • 1 Posts
    Hi folks

    Is there a way we can include "File Attachment" field on ContactForm for the users to send their files along with the message ?. Help will be much appreciated.

    Thanks
      • 33337
      • 3,975 Posts
      Check eForm snippetin Resources list.

      regards,

      zi
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 28373
        • 204 Posts
        Here’s the link

        http://modxcms.com/forums/index.php/topic,2122.0.html

        I couldn’t find anything that handles uploads as attachments
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          eForm does handle uploaded files as attachments. You do have to make sure that the phpMailer class in Manager is the latest version, however.


          # &format (Optional)
          # list of form fields that requires server-side validation
          # - format: field_name:field_description:field_datatype:field_required
          # - field_required: 0 or 1
          # - field_datatype:
          # string,
          # date,
          # integer,
          # float,
          # email,
          # file - for file upload input
          ...
          The eform.inc.php file processes the uploaded files from your form and ships them off to phpMailer along with the rest of the mail data.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org