In modern Chinese, 附件 most commonly refers to email attachments. In other contexts, it can mean physical accessories (for a product) or appendices (for a document or contract).
usage
附近 (fùjìn) = nearby (different word but same 附 meaning 'close to'). 配件 (pèijiàn) = spare part/accessory (more for hardware/machinery).