1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 How do I change the directory of attachments, and manage them?

Discussion in 'XenForo Questions and Support' started by Chi Bearhawks, Aug 13, 2013.

  1. Chi Bearhawks

    Chi Bearhawks Member

    I want my attachments to be in a different folder, inside my website's root (outside of the forum directory). How can I accomplish this?

    Also, is it possible to manage my attachments, such as the name of them? I've seen it done before, but it may possibly be an add-on.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Chi Bearhawks

    Chi Bearhawks Member

    I tried that by putting
    Code:
    $config['internalDataPath'] = '../images/';
    
    , but the attachments still show up in forums/attachments/.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    There is no /attachments/ directory.

    You will need to move the existing content - adding that to config.php won't automatically move the content.
     
  5. Chi Bearhawks

    Chi Bearhawks Member

    No, I'm referring to newly uploaded content. After the config file is updated, I THEN go to upload an attachment (on a page that has been loaded after the config file was updated) and the file path still shows up /attachments.
     
  6. Mike

    Mike XenForo Developer Staff Member

    This changes the physical path to them - the attachments route you're seeing is just XenForo's URL. It doesn't relate to where the attachments are placed.
     

Share This Page