Announcement

Collapse
No announcement yet.

How save Attachments and Documents to FTP Server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How save Attachments and Documents to FTP Server

    I add Attachments in Knowledge Base.
    I want move file Attachments to another Server.

    How Develop function on Espo?

    Thank,
    I'm not good english

  • #2
    Espo stores attachments in the "data/upload/" folder.

    The table "attachment" contains one row (record) for each file with the file details. The name of the file is the same as the record id.

    The path "data/upload/" is set in class EspoUploadDir defined in file application/Espo/Core/FileStorage/Storages/EspoUploadDir.php

    I think you could modify that code to specify a custom file path to store attachments and move your attachments to that file path but I am not sure how to do this in an "upgrade safe" mode.

    Hope this helps

    Comment


    • #3
      Lazy solution... You can mount a remote ftp server to a directory in linux, although you should check for newer alternatives since that program is a bit old (but not necessarily outdated). If you do it to data/upload/ you are done. And it's probably upgrade-safe.

      Ps. If you do that I'd probably double-check what is the behaviour when the remote server is unabvailable in order to prevent possible data loss.
      Last edited by tothewine; 05-21-2019, 09:49 PM.

      Comment

      Working...
      X