How attachments are stored in XenForo


Andy

Administrator
When a image file is attached using the Attach files button:

1591284089751.jpg


The image will get an attachment_id.

For example:

[ATTACH]545168[/ATTACH]

You can see the attachment _id in the xf_attachment table. Use phpMyAdmin and search for the attachment_id you will see this:

1591284307724.png


Note the data_id has a number 430544. This number is used in the file system to store the file. Using File manager in cPanel you can see the following file:

internal_data/attachments/430/

1591284489857.png
 
Top