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

Aws s3 image uploads #24

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Aws s3 image uploads #24

wants to merge 9 commits into from

Conversation

danielkao14
Copy link
Contributor

Added Triple Flip Screen for image upload and retrieval from AWS S3 and MongoDB

  • Use Expo Image Picker library to choose 3 images from mobile device for upload
  • Image data is uploaded to AWS S3, sets of 3 image keys are stored in MongoDB to ensure triplet uploads are preserved
  • "Get images" button retrieves a random set of 3 image keys from MongoDB; corresponding image data is retrieved from AWS and are sent to the front end as b64 encoded URI's

Notes:
b64 encoding seems to be expensive, image load speeds are currently slow
Could be worth refactoring image data into blobs/direct URI to speed up image retrieval/upload

image

add triple flip image upload functions

triple flip screen in mobile
imageAWSController, tripleFlipModel, tripleFlipRoutes in server

installed multer, aws-sdk, react-native-image-picker for image upload to AWS S3
Add pick images functionality via expo image-picker lib

aws, mongodb server files are not functional yet
User can post 3 images to AWS
Image keys are stored as a triplet in a string array on MongoDB

User can get random sets of images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant