prikryla / friendly_betting

1 stars 0 forks source link

BE - Route for user's profile image #25

Open prikryla opened 1 month ago

prikryla commented 1 month ago

Create a route that will upload/edit user's profile image.

janmrakava commented 1 month ago

That's sound interesting, I like that!

prikryla commented 3 weeks ago

@janmrakava Try to test the profile image route please. There's probably some issue with the Postman extension of the VSCode but I'm not able to test it properly. It will fail probably, but please try it at least. Use the branch mentioned and linked to this issue. Thanks!

janmrakava commented 3 weeks ago

@prikryla no problema. Just maybe can you share some easy peasy tutorial, which method, parameters etc?:)

prikryla commented 3 weeks ago

Parameter for the route should be path of the image that was uploaded from FE side. Basically it comes from form-data and not as parameter. Not particular parameter of the route was specified hence it's not required. You can find it under authentication app (urls.py/views.py).

Don't forget to perform migration due update the db model.

janmrakava commented 3 weeks ago

Well, okay. In that case I need to study how to process image on FE, and how to send this data. Because I don't have experience with this one, if I to be honest

janmrakava commented 2 weeks ago

@prikryla So I looked up how I should do it on the FE part, and somehow it should work. so we can try it the way you did and see and be wiser. I was expecting something more difficult on FE, but I guess it won't be given the size of our application.

prikryla commented 2 weeks ago

@janmrakava I have consulted this issue with one of my colleagues and I suggest to postpone this issue or move it to later. This is seriously not that trivial and we should investigate this deeper and then propose some solution. WDYT? I should finalize other router for editing data etc.

janmrakava commented 2 weeks ago

No problem. FE is ready for solution without image, so no struggle on my side.