Implement attaching files functionality 

Implement attaching files functionality #651