Build a serverless architeture to upload media files from different users into your application
- API Gateway: APIs act as the "front door" for front-end applications, and secure APIs at any scale.
- Lambda function: Serverless function that can run code without provisioning or managing infrastructure.
- S3: Object storage built to retrieve any amount of data from anywhere.
- Receives a base64 encoded string file from API Gateway and send to s3 through the lambda.
- To make a base64 file click here to use easy64 website
- Because it's only allowed media files, mime type is verified and if is not found or it's not a media file an exception is thrown.
- Once file is successfully verified, it will be uploaded to the s3
Body example ![example](./screenshots/jsonbase64.png)
The response should be this:
![example](./screenshots/responseS3.png)