pass filepath to pathinfo for attachments
Merge pull request #38 from propcom/fix-attach

Pass filepath to pathinfo for attachments