We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20751
    • 122 Posts
    I’ve searched the wiki and the forums but can’t find information on how to use the attachments feature of eform. In the eform documentation there is an example of how to attach and validate various text files such as .doc .pdf .rtf etc, but how would one validate for images, zip files and other attachment types?

    Any pointers in the right direction would be much appreciated!
      • 30223
      • 1,010 Posts
      Uploaded files are simply attached to the email. To support other file types edit the validation rules ,..

      <input type="file" name="attachment" eform="Attachment:file:0:Images Only :#LIST jpg,gif,png" />

      <input type="file" name="attachment" eform="Attachment:file:0:Zipped files Only :#LIST rar,zip,gz2" />

        • 20751
        • 122 Posts
        Thank you! grin