Mentorship-android: Upload Profile Picture option for users in EditProfile

Created on 23 Feb 2020  路  18Comments  路  Source: anitab-org/mentorship-android

Description

As a user of the Android app,
I need to be able to upload a profile picture,
so that I can complete my user profile.

Taken from this Google Code in task

As a user of the application , if I click on "Profile" option from Bottom Navigation "My Profile " screen opens up . On clicking "edit icon" 馃枊 (at right top) an alert dialogue box named "Edit Profile" opens up . In the dialogue box , there is no option of uploading profile picture .

Your task is to only design "upload profile picture option" so that user of the application can later on upload his/her picture in Edit Profile Section of the application. e.g you can use a camera icon or design something beautiful and innovative accordingly.
The user should be able to upload a local image to the Android app.

Related to #24

Acceptance Criteria

Update [Required]

  • [ ] Implement uploading image to User Profile

Definition of Done

  • [ ] All of the required items are completed.
  • [x] Approval by 1 mentor.

Estimation

N/A hours

Coding User Interface Hacktoberfest Enhancement

Most helpful comment

@anna4j @anitab-org/coding-team Can I start working on this issue ?

All 18 comments

Can I work on this?

@isabelcosta can i work on this?

Hi @isabelcosta I would like to work on this!

@isabelcosta Can i work on this?

@isabelcosta @anna4j @sanchi0204 Can I work on this issue as a part of OSH ?

Sure I'll assign you on 1st Sept @ydasc815

@anna4j @anitab-org/coding-team Can I start working on this issue ?

Sure

@ydasc815 how's the PR going?

Unassigng @ydasc815 and making it due to inactivity.If you would like to work on this later do let us know in comments:)

@vj-codes @anna4j Can I work on this?

Assigning you @devkapilbansal
Happy coding!

@vj-codes @aditmehta9 I'd like to take up this issue !

Assigning you @justdvnsh
Happy coding!

@iofall @vj-codes One thing I wanted to ask, is that, where would the images would be stored. Like I would get the image from gallery, then update the user model ( photo_url ) field. But where actually the image is going to be stored ?

@iofall @vj-codes One thing I wanted to ask, is that, where would the images would be stored. Like I would get the image from gallery, then update the user model ( photo_url ) field. But where actually the image is going to be stored ?

I am not sure I did take a look at the mentorship-backend it seems to have only a URL, so we are only storing URLs to the image and not the image itself. I think Zulip would be the best place to ask this.

@iofall Yeah. That's why I was asking. Nevertheless, I'll try asking on Zulip !

@vj-codes See this. I've added this feature to add profile picture. But the problem is that it is not stored in the database. So the next time user opens up the app, the profile picture would be gone .Thus we need to upload it to AWS, get the image url and the update it in the mentorship-backend. There is a field photo_url in the user model. We need to save the image url there and then fetch the image from that url everytime.
editProfile

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iofall picture iofall  路  4Comments

jddeep picture jddeep  路  6Comments

annabauza picture annabauza  路  6Comments

devanshi7799 picture devanshi7799  路  8Comments

annabauza picture annabauza  路  7Comments