Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BE - Route for user's profile image #25

Open
prikryla opened this issue Oct 20, 2024 · 8 comments
Open

BE - Route for user's profile image #25

prikryla opened this issue Oct 20, 2024 · 8 comments
Assignees
Labels

Comments

@prikryla
Copy link
Owner

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

@prikryla prikryla self-assigned this Oct 20, 2024
@prikryla prikryla added the BE label Oct 20, 2024
@janmrakava
Copy link
Collaborator

That's sound interesting, I like that!

@prikryla
Copy link
Owner Author

prikryla commented Nov 7, 2024

@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
Copy link
Collaborator

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

@prikryla
Copy link
Owner Author

prikryla commented Nov 7, 2024

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
Copy link
Collaborator

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
Copy link
Collaborator

@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
Copy link
Owner Author

prikryla commented Nov 9, 2024

@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
Copy link
Collaborator

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

@prikryla prikryla linked a pull request Nov 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants