get attachments by docid not sequence