I'm trying to get the attachment image paths for all attachments in a thread.
I guess this is stored in image_path in attchment_data, but phpmyadmin is showing as empty - I guess because its a long 250 varchar. Is there a way to show this?
thanks
SELECT * FROM xf_post as p, xf_attachment as a, xf_attachment_data as d
WHERE p.thread_id = 'xxx'
and a.content_id = p.post_id
and d.data_id = a.data_id
Actually that seems wrong as the file_path should be empty - https://xenforo.com/community/threa...-xf_attachment_data-table.101261/#post-957058
So still a bit lost on where to get the path for attachments from the db and the folder they're in
I guess this is stored in image_path in attchment_data, but phpmyadmin is showing as empty - I guess because its a long 250 varchar. Is there a way to show this?
thanks
SELECT * FROM xf_post as p, xf_attachment as a, xf_attachment_data as d
WHERE p.thread_id = 'xxx'
and a.content_id = p.post_id
and d.data_id = a.data_id
Actually that seems wrong as the file_path should be empty - https://xenforo.com/community/threa...-xf_attachment_data-table.101261/#post-957058
So still a bit lost on where to get the path for attachments from the db and the folder they're in