• 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?


Well-known member
I see that attachments are stored in the following folder:


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?

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).