• Welcome to XF2 Addons

    You can purchase a Premium membership for only $35 per year, and this gives you access to download any or ALL of the over 400 add-ons developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

How attachments are stored in XenForo

Andy

Administrator
Staff member
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]

Using phpMyAdmin, you can see the attachment _id in the xf_attachment table:

1591284307724.png


The data_id has a number 430544, this number is used in the file system to store the file. Use File manager in cPanel do navigate to the following folder:

internal_data/attachments/430/

In the /430/ folder you will see the following file:

1591284489857.png
 
So lets say you want to go to the post where attachment_id 545168 is posted, use the content_id like this:

https://domain.com/posts/2242022
 
Back
Top