Skip to content

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.

2 participants