-
Get AWS SDK for JavaScript and configure it from following steps from this AWS Guide.
-
Sample code to generate pre-signed URL:
var s3 = new AWS.S3(); var params = {Bucket: 'myBucket', Key: 'myKey'}; s3.getSignedUrl('getObject', params, function (err, url) { console.log("The URL is", url); });
-
Ref: from this AWS Guide.
- Get AWS SDK for Android and configure it from following steps from this AWS Guide.
- Follow steps mentioned in this AWS Guide which has sample code and full working example for generating pre-signed URLs.
- Install AWS SDK for iOS from this AWS Guide.
- Configure it from following steps in this AWS Guide.
- Follow steps mentioned in this AWS Guide which has sample code and full working example for generating pre-signed URLs.
-
Any Presigned URL generated will be valid for 15 mins.
-
Image Data Format:
{
"image": "{\"id\":\"image-unique-name.jpg\",\"storage\":\"cache\",\"metadata\":{\"size\":83156,\"filename\":\"original-file-name.jpg\",\"mime_type\":\"image/jpeg\"}}"
}