maofalt / Transcendence

4 stars 0 forks source link

Edit profile photo doesn't update frontend #288

Closed YoelRidgway closed 5 months ago

YoelRidgway commented 6 months ago

I must have forgotten to add it to the form in the edit page. I am sending the photo data in the normal profile page when editing the photo. However, the endpoint `` seems to be broken in both cases.

This is the error in the browser: 400 Bad Request {"error": "Form is not valid."}

This is the error in the backend: Screenshot 2024-04-15 at 12 59 47 It looks as though I have not send the avatar: field, but I have!

So, two things need to be done:

YoelRidgway commented 5 months ago

@coisu I have fixed the small error in the EditProfile form. Now we need to fix the problem with the avatar not uploading. You can use the branch corresponding to this issue.