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

Attachment folders, what is the structure?

Discussion in 'XenForo Development Discussions' started by AndyB, Mar 15, 2013.

  1. AndyB

    AndyB Well-Known Member

    I see that attachments are stored in the following folder:

    /internal_data/attachments/0/

    Coming from vB4 I'm used to the userid being the folder path. How is xF different? Are attachments placed in the /0/ folder until a certain amount and then a new folder is created?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Chris D

    Chris D XenForo Developer Staff Member

    There's no user_id indication in the file structure.

    It's all based on the attachment ID.

    Attachments with IDs 0-999 are stored in the 0 directory. 1000-1999 stored in the 1 directory etc.

    The files in internal_data/attachments are the full bits of the attachment. Whereas the files in the data/attachments are the thumbnails (also stored in the same numbered directory format).
     
  4. AndyB

    AndyB Well-Known Member

    Thank you kindly Brogan and Chris.
     

Share This Page