amitharjani93 / TestRepo

0 stars 0 forks source link

Fix for User Profile Picture Not Updating (Bug #1) #4

Open amitharjani93 opened 3 weeks ago

amitharjani93 commented 3 weeks ago

This is a PR to merge changes from Test Branch to the Main branch

amitharjani93 commented 3 weeks ago

This PR addresses the issue where users were unable to update their profile pictures. The root cause was identified as a caching problem in the image upload process. The changes ensure that the new profile picture is saved and displayed immediately after upload.

Changes:

Modified the image upload handler to clear the cache after the new image is saved. Updated the user profile view to fetch the latest image from the server. Added a client-side check to force a refresh of the profile picture upon successful upload.