Fix for fakepath issue https://trello.com/c/ESlli63m/456-fakepath-issue-in-attachments.