Open
Description
I'm using the AWS S3 uploader with pre-signed keys.
From what I can tell, the pre-signing response from my API is correct (validated the response format is correct and without a signature that I got a 403 when uploading to S3). The upload succeeds and I can see the objects in the bucket. However, the files appear to be "empty" yet they still have the proper content type and file size.
Component Config
dzOptions: {
method: 'PUT',
headers: {
'Content-Type': 'image/jpeg'
}
},
awsOpts: {
signingURL: (f) => { return `https://localhost:5001/photos/upload-request?albumId=${this.album.id}&filename=${f.name}` },
sendFileToServer: false,
withCredentials: false // TODO: change when auth implemented
}
Signing Response
{
"signature": {
"Content-Type": "image/jpeg",
"acl": "public-read",
"success_action_status": "200",
"policy": "123",
"x-amz-credential": "AKIAI*******/20190822/us-east-1/s3/aws4_request",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-date": "20190822T025046Z",
"x-amz-signature": "*******",
"key": "photos/test-4/IMG_2795.JPG"
},
"postEndpoint": "https://*******.s3.amazonaws.com/photos/test-4/****.JPG?X-Amz-Expires=60&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIA*******/us-east-1/s3/aws4_request&X-Amz-Date=20190822T025046Z&X-Amz-SignedHeaders=content-type;host&X-Amz-Signature=******"
}
Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels