upload avatar to server, with issues not solved yet