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

get all attachments in a thread?

#1
I'm looking through the attachment models and the xf_attachment* databases, and I'm a little confused.

Do I have to go through each post in a thread to call getAttachmentsByContentId to collect all attachments?

I'm trying to gather all attachments in a thread and show them in a little area above a thread.
 

Aayush

Well-known member
#2
I think probably you should get all the posts in a thread and then search the attachments table with these post ids