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

    I have FileUpload working with FormIt to send off attachments to an email using the email hook. This works fine but I notice the files are not saved in the directory specified as the upload path i.e. uploads4786/. The folder was created fine though, just that no uploaded files are in there. Is it because the email hook was used?

    Thanks!
      • 28432
      • 372 Posts
      Hi,

      Did you check folder permission ?
        • 23510
        • 168 Posts
        Quote from: Steeve at Feb 10, 2016, 07:28 AM
        Hi,

        Did you check folder permission ?

        Yeah, its not that. In fact if I delete the folder, FileUpload will recreate it. Its not a major issue since the files are sent attached to the emails.
          • 28432
          • 372 Posts
          Yeah, its not that. In fact if I delete the folder, FileUpload will recreate it. Its not a major issue since the files are sent attached to the emails.

          FileUpload create the folder but maybe not with the right permission.
          ANOTHER WAY
          I think you can save the file(s) with a custom hook in "Formit" call.
            • 3749
            • 24,544 Posts
            FileUpload uses 0777 for directory permissions (it should be a property, but isn't). You can change it on line 147 of the snippet.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting