Updated example for attaching files

This is for ticket #620