Fixes upload attachment on user account page

Part of OOIION 1543
Merge pull request #219 from Bobfrat/ooiion1543v2

Fixes upload attachment on user account page