XF 2.2 How does attachments work?

I am trying to dig around for how attachments are tied to a post or resource. Also how it generates the hash and creates the .data file.

Since the API for resources is not updated and I am having a hard time trying to figure out what all needs to be sent. I figured I would just write a custom php file or class. So I could do a mass import of resources. What is holding me back is how attachments work.
 
Back
Top Bottom