mentorship-backend icon indicating copy to clipboard operation
mentorship-backend copied to clipboard

Upload photos to Amazon S3

Open isabelcosta opened this issue 6 years ago • 12 comments

Description

As a user of Mentorship System, I need to be able to upload profile image into the backend, so that I can make my profile more personal.

You can find some info about S3 urls in this file of Android app.

Expected Input: Image will be sent as an encoded string

Acceptance Criteria

Update [Required]

  • [ ] Save User images on Amazon S3
  • [ ] Save URL on UserModel photo_url field
  • [ ] Return photo_url on appropriate APIs

Definition of Done

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

Estimation

5 hours

isabelcosta avatar Nov 29 '18 20:11 isabelcosta

@isabelcosta What format of input should I expect when developing this feature will the image be uploaded in bytecode or via request?

DivyeshPuri avatar Dec 21 '18 15:12 DivyeshPuri

@DivyeshPuri I wish I knew :P @m-murad can you help to clarify this, please?

isabelcosta avatar Dec 29 '18 21:12 isabelcosta

Image will be uploaded as an encoded string

m-murad avatar Dec 29 '18 22:12 m-murad

@DivyeshPuri answer up here ^^ @m-murad Thank you sooooo much

isabelcosta avatar Dec 29 '18 22:12 isabelcosta

Can I work on this issue??

ethicalrushi avatar Jan 26 '19 15:01 ethicalrushi

@ethicalrushi if you still want to work on this you can ;)

isabelcosta avatar Feb 10 '19 13:02 isabelcosta

Is this issue available @isabelcosta ? If yes, then I would like to work on this :)

CleverFool77 avatar Feb 19 '19 09:02 CleverFool77

Is this the process -

  • Get the encoded string of image from frontend
  • Save the image decoded from string in aws s3.
  • Get the photo url from aws and store it in db
  • Return photto url in the update user profile api endpoint.

CleverFool77 avatar Feb 20 '19 04:02 CleverFool77

@CleverFool77 a practice here in the community is to wait for maintainers to approve that you work on the issue before sending a PR, so that we can manage better the issues. Keep that in mind for future contributions please

isabelcosta avatar Feb 21 '19 21:02 isabelcosta

I'll surely keep that in mind from next time @isabelcosta

CleverFool77 avatar Feb 22 '19 02:02 CleverFool77

Is this issue available now to work? I want to work on this issue.

codesankalp avatar Sep 11 '20 14:09 codesankalp

@anna4j @codesankalp this issue is already completed, we are blocked by infrastructure needs such as AWS.

isabelcosta avatar Sep 12 '20 23:09 isabelcosta