Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6.20, 4.7.10
-
Fix Version/s: 4.7.12
-
Component/s: Core CiviCRM
-
Labels:None
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
In templates/CRM/common/civicrm.settings.php.template we have:
// Override the Temporary Files directory. // $civicrm_setting['Directory Preferences']['customFileUploadDir'] = '/path/to/upload'; // Override the custom files upload directory. // $civicrm_setting['Directory Preferences']['uploadDir'] = '/path/to/upload-dir' ;
I'm pretty sure that the descriptions are inverted for these two settings. Since uploadDir gets purged on cache clears, whereas customFileUploadDir is intended to persist and contain user-uploaded files (e.g., attachments to cases), this confusion could lead to data loss.