Fixes upload attachment on user account page

Part of OOIION 1543
Merge pull request #220 from Bobfrat/ooiion1543v2-rel2

Fixes upload attachment on user account page