Fixes upload attachment on user account page

Part of OOIION 1543