Get post attachment with post id
I have a form where user can upload a file, which creates a post with an attachment. I would like to get this attachment with post id, because this is the only thing I have in my case. Is it possible ?
Thank you,
ArbreMojo.