Affects Version/s: 19.6 [Tentative], 20.2 [Tentative], 21.0 [Tentative]
Fix Version/s: None
Environment:19.x nightly server: https://qa19-mysql.nightly.sakaiproject.org/
20.x nightly server: https://qa20-mysql.nightly.sakaiproject.org/
21.x trunk server: https://trunk-mysql.nightly.sakaiproject.org/portal/
Browser(s):Chrome 80.0.3987.132 Windows 10
There are two ways to change the profile picture (see the screenshots): (1) Click the avatar at the upper right corner, click "change," and upload a picture. (2) Click the avatar at the upper right corner, click "my profile," make the cursor hover up the current profile picture, click "Change picture," and upload a picture. If you change the profile picture either ways, the profile picture should get updated in both parts after refreshing the browser.
Currently, the two ways are inconsistent in the following aspects:
(1) The first approach accepts a picture whose size is greater than 2MB, while the second approach doesn't;
(2) The first approach accepts a picture of various types, while the second approach accepts very few file types (for example, the first approach accepts a picture in .webp format, but the second approach doesn't);
(3) The first approach allows the user to adjust the picture size and cut the picture, while the second doesn't;
(4) The first approach restricts the user to upload files that are in picture format, while the second allows the user to upload any file type (but will only accept very few formats and will not give warning messages to tell the user that he/she has uploaded an invalid file).
These inconsistencies might cause issues. It would be better to extend the file uploading mechanism in the first approach to the second approach.