Closed DeeMcCart closed 6 months ago
DMcC 06/02/24: Solution:
Ref: https://www.youtube.com/watch?v=_P_-gum7rio codemy.com 'Uploading a user profile picture' Key was add ....enctype="multipart/form-data" within the form and, in the profiles/views.py: add ....request.FILES or None ie: profile_form = UserProfileForm(request.POST, request.FILES or None, instance=current_profile)
Note - this has alerted me that we should really have a full user form for maintaining user including firstname and lastname (and possibly user address)
DMcC 09/02/24: Applied CustomClearableFileInput widget to improve UX:
Profile page with image:
Change the image file and click on Update Information:
Confirmation the image has updated:
DMcC 09/02/24 - improved UX using CustomClearableFileInput django widget:
EPIC: #6
Assumptions or Pre-Requisites:
Acceptance Criteria: (Must be completed before task is moved to 'Done')
Tasks