Upload documents for Questions or Answers?

Working on Q&A plugin project. No way to attach document (like in a post/page) with question or answer, only add image URL?

I realize I can upload docs to media library and the hyper-link via HTML but that is a long work around.

Please advise.