RelatedTitle / user-account-system

This user account system allows for the registration of users using their email and password + OAuth providers. It has full email verification and password reset functionality. It uses PostgreSQL, Express, Passport, and JWT as user tokens.
MIT License
2 stars 0 forks source link

Add support for storing avatars on S3. #7

Closed RelatedTitle closed 3 years ago

RelatedTitle commented 3 years ago

Add support for storing avatars on S3. Add the necessary config values for the bucket and to know whether to store the avatars locally or on S3 (or more in the future).

Raj-292 commented 3 years ago

For storing avatar on S3, that can be done by generating a Pre-signed URL first (by sending file metadata) and then uploading the image to S3 using the generated URL. Is this what is expected on this issue ?

RelatedTitle commented 3 years ago

It can either be done that way or using the SDK. It doesn't really matter what method is used as long as the result is the same. :)

Raj-292 commented 3 years ago

Alright, do we have a test s3 bucket ?

RelatedTitle commented 3 years ago

I can't provide a testing S3 bucket, sorry.

Raj-292 commented 3 years ago

Okay, not an issue. I will start working on it

RelatedTitle commented 3 years ago

Any updates?