fix(avatar): get upload url from server

fix for server configured with api prefix eg `/api`