Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is the 'Application_Storage_Directory' Global Variable
#1
I saw this GV, along with 'Application_Storage_SaveStrategy'. What do they do? Could we for instance work with owncloud or nextcloud?
Reply
#2
Hi.

The variable that you need for you need is Application_Storage_Directory. This variable is to indicate a new root directory for storage.

Application_Storage_SaveStrategy is for indicate the strategy of directory names when you save a document into your root directory storage.
Now, by default, when you save a document is create a year/month/week into storage. Now you can indicate the paremeter "crmid" to create a directory with the crmid of the record that you are relating a document.

You can check the code on function dicideFilePath here: https://github.com/tsolucio/corebos/blob/master/include/utils/CommonUtils.php#L2089
Reply
#3
Thanks!

Can an Application_Storage_Directory value only be set to a folder in the corebos root though?
Reply
#4
I think yes. I think that this new folder has to exist on corebos root directory. But maybe you can try to create a link to your owncloud directory. I've not tested it, yet.
Reply
#5
You can set the variable to any directory that is freely accessible by the webserver user. The only important thing is that the webserver user must be able to read and write to that directory. The main goal of this variable is to move the documents out of the webserver tree for security issues.
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)