We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4775
    • 47 Posts
    Ok so I have a form that allows you to upload multiple files. Originally I only allowed one file, this file would be attached to the e-mail report sent by eform. But I need to support more than one file. When I receive the report it does not have any file attachments but has the file name, mime type, and temp php location of the file.

    What do I need to do to make eform upload the file to a server directory and provide the URL?
      • 30223
      • 1,010 Posts
      Right now, to do this you will have to write yourself a function for the eFormOnMailSent event which saves the file to a directory of your choice and stores the url in the $fields array. You can then use a placeholder in your report for the url. See examples here in the forum, the wiki or in the assets/snippets/eform/ folder on how to work with event functions.

      Good luck.
        • 7231
        • 4,205 Posts
        This discussion has an example of eForm with eForm2DB to upload an image.

        eForm events are the "beez kneez: grin
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]