Serverless Service for Movus Static File Upload
Live Site
- Send Get Request to https://dikdjt4qzl.execute-api.ap-southeast-1.amazonaws.com/prod/upload?name={image_name}&type={image_type} with your file and desired filename
- make sure input get 200 http response, example response below
{
"putUrl": "https://adpro-a8-staticfile.s3.ap-southeast-1.amazonaws.com/images/acil?AWSAccessKeyId={Secret}&Content-Type=image%2Fpng&Expires=1627372464&Signature={Secret}",
"getUrl": "https://adpro-a8-staticfile.s3.ap-southeast-1.amazonaws.com/images/acil"
}
- Upload image to given putUrl
- save getUrl to database for next fetch
- to get image that already uploaded, fetch from getUrl