We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38354
    • 4 Posts
    I have such options in install modx revolution:
    Advanced Options
    New folder permissions 0700
    New file permissions 0466

    Now I need to change this advanced option, becouse i need new permissions for new files created via MODX.
    When i do upgrade existing modx revoluion this advanced option don`t display. Advanced upgrade don`t display too.

    How i can change this option?
    Which file is responsible for this options?
    • Apparently if it's not modified in the Setup, it doesn't get saved and MODX falls back to a default. Line 76 of /manager/controllers/default/workspaces/index.class.php:
      'new_folder_permissions' => $this->modx->getOption('new_folder_permissions',null,0775),
      

      And for files, line 359 of core/model/modx/modfilehandler.class.php:
      if (empty($mode)) $mode = $this->fileHandler->context->getOption('new_file_permissions', '0644', $this->fileHandler->config);
      


      So to change it, create two new System Settings, new_folder_permissions and new_file_permissions. It looks like you should be able to add new_file_permissions to a Media Source's properties as well, and possibly also new_folder_permissions.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org