04-25-2017, 07:17 AM
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
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