uploadAvatar abstract method

Future<String> uploadAvatar(
  1. Uint8List imageBytes,
  2. String? oldFilename
)

Uploads a new profile photo to NTUT Portal, replacing the current one.

oldFilename should be the current avatar filename (from UserDto.avatarFilename, or empty string if none).

Returns the new avatar filename assigned by the server.

Implementation

Future<String> uploadAvatar(Uint8List imageBytes, String? oldFilename);