User Story

As a user,

I want to upload my profile picture.

API Calls

uploadAvatar(avatar)

returns a link to the uploaded image.

deleteAvatar(avatar)

returns nothing so far.

User Interface

Acceptance Criteria

AC-1 User can click on empty avatar to pick a file
AC-1.1 Maximum file size is 500 Kb
AC-1.2 Supported file formats are png, jpg, jpeg and gif
AC-1.3 User can drag and drop a file
AC-2 The avatar updates correctly both on the user profile page and in the header user menu
AC-3 The user can delete uploaded avatar
AC-4 Admin can upload and delete any user avatar